Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
6672:d6a60e74f773 | 6673:b123fcd65d2e |
---|---|
32 end | 32 end |
33 end | 33 end |
34 return new_set; | 34 return new_set; |
35 end | 35 end |
36 function set_mt.__eq(set1, set2) | 36 function set_mt.__eq(set1, set2) |
37 local set1, set2 = set1._items, set2._items; | 37 set1, set2 = set1._items, set2._items; |
38 for item in pairs(set1) do | 38 for item in pairs(set1) do |
39 if not set2[item] then | 39 if not set2[item] then |
40 return false; | 40 return false; |
41 end | 41 end |
42 end | 42 end |