Skip to content

Commit

Permalink
Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
asterite committed Jan 6, 2025
1 parent 0f0ef61 commit 5d263d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tooling/nargo_cli/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,9 @@ pub(crate) fn start_cli() -> eyre::Result<()> {
NargoCommand::GenerateCompletionScript(args) => generate_completion_script_cmd::run(args),
}?;

lock_file.map(|lock| lock.unlock().expect("Failed to unlock Nargo.toml"));
if let Some(lock_file) = lock_file {
lock_file.unlock().expect("Failed to unlock Nargo.toml");
}

Ok(())
}
Expand Down

0 comments on commit 5d263d4

Please sign in to comment.