Skip to content

Commit 00a9508

Browse files
committed
ci: make linter happy
1 parent d69653a commit 00a9508

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/rustaceanvim/cargo.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function cargo.get_root_dir(file_name)
8282
end
8383
if cm == 0 then
8484
local ok, cargo_metadata_json = pcall(vim.fn.json_decode, cargo_metadata)
85-
if ok then
85+
if ok and cargo_metadata_json then
8686
cargo_workspace_dir = cargo_metadata_json['workspace_root']
8787
end
8888
end

0 commit comments

Comments
 (0)