Mercurial > prosody-hg
comparison core/hostmanager.lua @ 8555:4f0f5b49bb03
vairious: Add annotation when an empty environment is set [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 28 Feb 2018 20:06:26 +0100 |
| parents | 3a6f5b0f56f0 |
| children | 7b9ffddc4276 |
comparison
equal
deleted
inserted
replaced
| 8554:12a68e0d0ecf | 8555:4f0f5b49bb03 |
|---|---|
| 25 local pairs, rawget = pairs, rawget; | 25 local pairs, rawget = pairs, rawget; |
| 26 local tostring, type = tostring, type; | 26 local tostring, type = tostring, type; |
| 27 local setmetatable = setmetatable; | 27 local setmetatable = setmetatable; |
| 28 | 28 |
| 29 local _ENV = nil; | 29 local _ENV = nil; |
| 30 -- luacheck: std none | |
| 30 | 31 |
| 31 local host_mt = { } | 32 local host_mt = { } |
| 32 function host_mt:__tostring() | 33 function host_mt:__tostring() |
| 33 if self.type == "component" then | 34 if self.type == "component" then |
| 34 local typ = configmanager.get(self.host, "component_module"); | 35 local typ = configmanager.get(self.host, "component_module"); |
