Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/codeium/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local M = {}
function M.fallback_call(calls, with_filter, fallback_value)
for _, i in ipairs(calls) do
local ok, result = pcall(unpack(i))
if ok and (with_filter ~= nil and with_filter(result)) then
if ok and (with_filter == nil or with_filter(result)) then
return result
end
end
Expand Down