Mercurial > prosody-hg
comparison core/configmanager.lua @ 6714:429068c24ea0
configmanager: Remove unnecessary function localizations [luacheck]
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 18 May 2015 19:05:08 +0100 |
| parents | b628870b1bd6 |
| children | 03a283aa679e |
comparison
equal
deleted
inserted
replaced
| 6713:b628870b1bd6 | 6714:429068c24ea0 |
|---|---|
| 117 return p; | 117 return p; |
| 118 end | 118 end |
| 119 | 119 |
| 120 -- Built-in Lua parser | 120 -- Built-in Lua parser |
| 121 do | 121 do |
| 122 local pcall, setmetatable = _G.pcall, _G.setmetatable; | 122 local pcall = _G.pcall; |
| 123 local rawget = _G.rawget; | |
| 124 parsers.lua = {}; | 123 parsers.lua = {}; |
| 125 function parsers.lua.load(data, config_file, config) | 124 function parsers.lua.load(data, config_file, config) |
| 126 local env; | 125 local env; |
| 127 -- The ' = true' are needed so as not to set off __newindex when we assign the functions below | 126 -- The ' = true' are needed so as not to set off __newindex when we assign the functions below |
| 128 env = setmetatable({ | 127 env = setmetatable({ |
