Skip to content

Commit

Permalink
logic is hard
Browse files Browse the repository at this point in the history
  • Loading branch information
sesi200 committed Dec 11, 2024
1 parent c3bb430 commit ff5f36e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfx/src/lib/deps/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ pub fn get_pull_canister_or_principal(
let p = Principal::from_text(canister).with_context(||
format!("{canister} is not a valid Principal nor a `type: pull` canister specified in dfx.json")
)?;
if pulled_json.canisters.contains_key(&p) {
if !pulled_json.canisters.contains_key(&p) {
bail!("Could not find {} in pulled.json", &p);
}
Ok(p)
Expand Down

0 comments on commit ff5f36e

Please sign in to comment.