Skip to content

Commit

Permalink
chore: use map_or
Browse files Browse the repository at this point in the history
  • Loading branch information
willemneal authored Mar 12, 2024
1 parent 36332c4 commit 8989e32
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/soroban-cli/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ mod build_helper {
fn file_exists(file_path: &Path) -> bool {
metadata(file_path)
.as_ref()
.map(Metadata::is_file)
.unwrap_or(false)
.map_or(false, Metadata::is_file)
}
}

0 comments on commit 8989e32

Please sign in to comment.