Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
airstruck committed Sep 19, 2015
1 parent 4000539 commit 4183135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knife/event.lua
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function Event.dispatch (name, ...)
end

local function isCallable (value)
return type(value) == 'function' or type(value) == 'table' and
return type(value) == 'function' or
getmetatable(value) and getmetatable(value).__call
end

Expand Down

0 comments on commit 4183135

Please sign in to comment.