Alois Mahdal před 8 roky
rodič
revize
d4f6cb5bad
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 7
    2
      dotfiles/imapdomo/common.lua

+ 7
- 2
dotfiles/imapdomo/common.lua Zobrazit soubor

@@ -18,8 +18,13 @@ function file_exists(name)
18 18
     --
19 19
     -- True if file *name* exists
20 20
     --
21
-    local f=io.open(name,"r")
22
-    if f~=nil then io.close(f) return true else return false end
21
+    local f = io.open(name,"r")
22
+    if f ~= nil then
23
+        io.close(f)
24
+        return true
25
+    else
26
+        return false
27
+    end
23 28
 end
24 29
 
25 30
 function init_host()