Skip to content

Commit

Permalink
stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
tonycuadra committed Oct 8, 2024
1 parent ffde1e4 commit 1e8a0c0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/connect.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ end
Returns `true` if the value can be called i.e. you can write `value(...)`.
]]
local function isCallable(value: any): boolean
return type(value) == "function" or
(type(value) == "table" and getmetatable(value) and getmetatable(value).__call ~= nil) or false
return type(value) == "function"
or (type(value) == "table" and getmetatable(value) and getmetatable(value).__call ~= nil)
or false
end

--[[
Expand Down

0 comments on commit 1e8a0c0

Please sign in to comment.