Software /
code /
prosody
Diff
util/queue.lua @ 6912:cb5b14c95b7b
util.queue: Add luacheck annotations
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 18 Oct 2015 21:54:17 +0100 |
parent | 6911:56c9bc4ba247 |
child | 9901:c8b75239846c |
child | 11103:73b8aaf55775 |
line wrap: on
line diff
--- 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;