Mercurial > prosody-hg
comparison util/cache.lua @ 7702:9385c367e920
util.cache: Ignore unused argument [luacheck]
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Tue, 18 Oct 2016 15:19:01 +0200 |
| parents | 8603b16e85c7 |
| children | fbe1f99fb245 |
comparison
equal
deleted
inserted
replaced
| 7701:672a863105f6 | 7702:9385c367e920 |
|---|---|
| 115 if not tail then return nil, nil; end | 115 if not tail then return nil, nil; end |
| 116 return tail.key, tail.value; | 116 return tail.key, tail.value; |
| 117 end | 117 end |
| 118 | 118 |
| 119 function cache_methods:table() | 119 function cache_methods:table() |
| 120 --luacheck: ignore 212/t | |
| 120 if not self.proxy_table then | 121 if not self.proxy_table then |
| 121 self.proxy_table = setmetatable({}, { | 122 self.proxy_table = setmetatable({}, { |
| 122 __index = function (t, k) | 123 __index = function (t, k) |
| 123 return self:get(k); | 124 return self:get(k); |
| 124 end; | 125 end; |
