Skip to content

Commit

Permalink
ci: make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb committed Jun 7, 2024
1 parent d69653a commit 00a9508
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/cargo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function cargo.get_root_dir(file_name)
end
if cm == 0 then
local ok, cargo_metadata_json = pcall(vim.fn.json_decode, cargo_metadata)
if ok then
if ok and cargo_metadata_json then
cargo_workspace_dir = cargo_metadata_json['workspace_root']
end
end
Expand Down

0 comments on commit 00a9508

Please sign in to comment.