Diff

util/set.lua @ 6673:b123fcd65d2e

util.set: Remove unnecessary local declaration, arguments are already locals [luacheck]
author Matthew Wild <mwild1@gmail.com>
date Wed, 06 May 2015 19:50:40 +0100
parent 5908:081a91507e4f
child 6674:a0ce52e11122
line wrap: on
line diff
--- a/util/set.lua	Wed May 06 19:43:51 2015 +0100
+++ b/util/set.lua	Wed May 06 19:50:40 2015 +0100
@@ -34,7 +34,7 @@
 	return new_set;
 end
 function set_mt.__eq(set1, set2)
-	local set1, set2 = set1._items, set2._items;
+	set1, set2 = set1._items, set2._items;
 	for item in pairs(set1) do
 		if not set2[item] then
 			return false;