Skip to content

Commit

Permalink
Simplify logical expression
Browse files Browse the repository at this point in the history
  • Loading branch information
stsantilena authored and c-nixon committed Oct 7, 2022
1 parent cdf5843 commit fb32617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/fs/src/cache/dir_path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ fn find_valid_path(
) -> Result<DirPathBuf, DirPathBufError> {
match path {
Some(p) => {
if matches!(std::fs::canonicalize(&p), Ok(_p)) {
if matches!(std::fs::canonicalize(&p), Ok(_)) {
Ok(DirPathBuf { inner: p, postfix })
} else {
warn!("{:?} is not a directory; moving to parent directory", p);
Expand Down

0 comments on commit fb32617

Please sign in to comment.