Changeset

6912:cb5b14c95b7b

util.queue: Add luacheck annotations
author Matthew Wild <mwild1@gmail.com>
date Sun, 18 Oct 2015 21:54:17 +0100
parents 6911:56c9bc4ba247
children 6913:c7a0d5299933
files util/queue.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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;