Skip to content

Commit

Permalink
Removed json object check in Cache
Browse files Browse the repository at this point in the history
  • Loading branch information
SinisterRectus committed Apr 20, 2018
1 parent dd98304 commit d9a43d8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions libs/iterables/Cache.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ local function remove(self, k, obj)
end

local function hash(data)
local meta = getmetatable(data)
if not meta or meta.__jsontype ~= 'object' then
return nil, 'data must be a json object'
end
-- local meta = getmetatable(data) -- debug
-- assert(meta and meta.__jsontype == 'object') -- debug
if data.id then -- snowflakes
return data.id
elseif data.user then -- members
Expand Down

0 comments on commit d9a43d8

Please sign in to comment.