Skip to content

Commit

Permalink
unnecessary DfxResult
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Dec 19, 2024
1 parent 7fb51fb commit c3893ea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/dfx/src/lib/environment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ impl<'a> AgentEnvironment<'a> {
let url = format!("http://{}", socket_addr);
let url = Url::parse(&url)
.map_err(|e| UriError::UrlParseError(url.to_string(), e))?;
Some(create_pocketic(&url)?)
Some(create_pocketic(&url))
}
None => None,
}
Expand Down Expand Up @@ -455,8 +455,6 @@ pub fn create_agent(
Ok(agent)
}

#[context("Failed to create PocketIC handle with url {}.", url)]
pub fn create_pocketic(url: &Url) -> DfxResult<PocketIc> {
let pocketic = PocketIc::new_from_existing_instance(url.clone(), 0, None);
Ok(pocketic)
pub fn create_pocketic(url: &Url) -> PocketIc {
PocketIc::new_from_existing_instance(url.clone(), 0, None)
}

0 comments on commit c3893ea

Please sign in to comment.