Skip to content

Commit

Permalink
chore: code review
Browse files Browse the repository at this point in the history
  • Loading branch information
a-frantz committed Jan 8, 2025
1 parent 2394792 commit 7661f3f
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions wdl-engine/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,8 @@ pub async fn run(

let results = analyze(file, vec![], false, false).await?;

let uri = if let Ok(uri) = Url::parse(file) {
uri
} else {
path_to_uri(file).expect("file should be a local path")
};
let uri = Url::parse(file)
.unwrap_or_else(|_| path_to_uri(file).expect("file should be a local path"));

let result = results
.iter()
Expand Down

0 comments on commit 7661f3f

Please sign in to comment.