# HG changeset patch # User Matthew Wild # Date 1445201657 -3600 # Node ID cb5b14c95b7bd32e52cebe6a24e84156f025f74d # Parent 56c9bc4ba24722978a93610c55ed28781f125e3f util.queue: Add luacheck annotations diff -r 56c9bc4ba247 -r cb5b14c95b7b util/queue.lua --- a/util/queue.lua Sun Oct 18 21:42:33 2015 +0100 +++ b/util/queue.lua Sun Oct 18 21:54:17 2015 +0100 @@ -16,7 +16,7 @@ local head, tail = 1, 1; local items = 0; -- Number of stored items local t = have_utable and utable.create(size, 0) or {}; -- Table to hold items - + --luacheck: ignore 212/self return { _items = t; size = size; @@ -52,6 +52,7 @@ return t[tail]; end; items = function (self) + --luacheck: ignore 431/t return function (t, pos) if pos >= t:count() then return nil;