浏览代码

Fix style

Alois Mahdal 8 年前
父节点
当前提交
d4f6cb5bad
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. 7
    2
      dotfiles/imapdomo/common.lua

+ 7
- 2
dotfiles/imapdomo/common.lua 查看文件

@@ -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()