We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 821b570 commit 4fc2c42Copy full SHA for 4fc2c42
lua/codeium/util.lua
@@ -6,7 +6,7 @@ local M = {}
6
function M.fallback_call(calls, with_filter, fallback_value)
7
for _, i in ipairs(calls) do
8
local ok, result = pcall(unpack(i))
9
- if ok and (with_filter ~= nil and with_filter(result)) then
+ if ok and (with_filter == nil or with_filter(result)) then
10
return result
11
end
12
0 commit comments