Skip to content

Commit

Permalink
feat: make luacheck and typechecking happy
Browse files Browse the repository at this point in the history
  • Loading branch information
max397574 committed Nov 1, 2024
1 parent 76fcb6e commit f02dd68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lua/care/sources.lua
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function care_sources.complete(context, source, callback)
triggerKind = 1,
}
end
if source.incomplete and not context.reason == 3 then
if source.incomplete and context.reason ~= 3 then
completion_context = {
triggerKind = 3,
}
Expand Down
2 changes: 1 addition & 1 deletion lua/care/sources/path.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ end

local function get_candidates(dirname, options, callback)
local fs, err = vim.uv.fs_scandir(dirname)
if err then
if err or not fs then
return callback(err, nil)
end

Expand Down

0 comments on commit f02dd68

Please sign in to comment.