Skip to content

Commit

Permalink
Update src/coprocessor/circom/mod.rs
Browse files Browse the repository at this point in the history
Co-authored-by: François Garillot <4142+huitseeker@users.noreply.github.com>
  • Loading branch information
tchataigner and huitseeker authored Mar 12, 2024
1 parent aea2b62 commit 551f052
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/coprocessor/circom/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,14 +172,12 @@ pub mod non_wasm {
) -> Result<(Utf8PathBuf, Utf8PathBuf), CircomCoprocessorError> {
match get_local_gadget(gadget)? {
Some(paths) => Ok(paths),
None => match get_remote_gadget(gadget)? {
Some(paths) => Ok(paths),
None => Err(CircomCoprocessorError::GadgetNotFound {
None => get_remote_gadget(gadget)?.ok_or_else(|| CircomCoprocessorError::GadgetNotFound {
reference: gadget.reference().clone(),
name: String::from(gadget.reference().name()),
prelude: error_prelude(),
}),
},
})
}
}
}

Expand Down

0 comments on commit 551f052

Please sign in to comment.