Software /
code /
prosody
Comparison
util/multitable.lua @ 8382:e5d00bf4a4d5
util: Various minor changes to please [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 10 Nov 2017 05:42:32 +0100 |
parent | 7185:5687788a2e4d |
child | 8389:5d866eb8f18f |
comparison
equal
deleted
inserted
replaced
8381:7f6184474149 | 8382:e5d00bf4a4d5 |
---|---|
130 local function iter(self, ...) | 130 local function iter(self, ...) |
131 local query = { ... }; | 131 local query = { ... }; |
132 local maxdepth = select("#", ...); | 132 local maxdepth = select("#", ...); |
133 local stack = { self.data }; | 133 local stack = { self.data }; |
134 local keys = { }; | 134 local keys = { }; |
135 local function it(self) | 135 local function it(self) -- luacheck: ignore 432/self |
136 local depth = #stack; | 136 local depth = #stack; |
137 local key = next(stack[depth], keys[depth]); | 137 local key = next(stack[depth], keys[depth]); |
138 if key == nil then -- Go up the stack | 138 if key == nil then -- Go up the stack |
139 stack[depth], keys[depth] = nil, nil; | 139 stack[depth], keys[depth] = nil, nil; |
140 if depth > 1 then | 140 if depth > 1 then |