Skip to content

Commit

Permalink
Remove redundant error check
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanBrouwer committed Apr 17, 2024
1 parent 87c8c32 commit 1edc670
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -207,12 +207,6 @@ fn generate_from_tree(
Ok(path) => path,
Err(e) => return Err(format!("Failed to read expected file {}.{extension}: {e}", file.display())),
};
if !input.exists() {
return Err(format!(
"Expected file {:?}.{}, but it does not exist.",
file, extension
))
}
let input = input.to_str().unwrap();

arguments.extend(match invocation_type {
Expand Down

0 comments on commit 1edc670

Please sign in to comment.