Uniform indent to tab and clear up.
@@ -18,7 +18,6 @@ end
return function (name , G, loader)
loader = loader or dft_loader
- local mainfunc
local function func_id(id, group)
local tmp = {}
@@ -42,7 +41,6 @@ return function (name , G, loader)
assert(getmetatable(G) == nil)
assert(G.init == nil)
assert(G.exit == nil)
-
assert(G.accept == nil)
assert(G.response == nil)
end
@@ -75,10 +73,8 @@ return function (name , G, loader)
end
end
- local pattern
-
local path = assert(skynet.getenv "snax" , "please set snax in config file")
- mainfunc, pattern = loader(path, name, G)
+ local mainfunc, pattern = loader(path, name, G)
setmetatable(G, { __index = env , __newindex = init_system })
local ok, err = xpcall(mainfunc, debug.traceback)
