Skip to content

Commit

Permalink
Fix lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincent-dfinity committed Nov 26, 2024
1 parent ea04166 commit 02ad44e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/dfx/src/lib/diagnosis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,7 @@ fn diagnose_ledger_not_found() -> Diagnosis {
}

fn insufficient_cycles(err: &CreateCanisterError) -> bool {
match err {
CreateCanisterError::InsufficientFunds { balance: _ } => true,
_ => false,
}
matches!(err, CreateCanisterError::InsufficientFunds { balance: _ })
}

fn diagnose_insufficient_cycles() -> Diagnosis {
Expand Down

0 comments on commit 02ad44e

Please sign in to comment.