Skip to content

Commit 124e313

Browse files
committed
install: fix clippy needless_bool warning
1 parent 2df75ca commit 124e313

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

‎src/uu/install/src/install.rs‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1402,11 +1402,7 @@ fn need_copy(from: &Path, to: &Path, b: &Behavior) -> bool {
14021402
}
14031403

14041404
// Check if the contents of the source and destination files differ.
1405-
if !are_files_identical(from, to).unwrap_or(false) {
1406-
return true;
1407-
}
1408-
1409-
false
1405+
!are_files_identical(from, to).unwrap_or(false)
14101406
}
14111407

14121408
/// Sets the `SELinux` security context for install's -Z flag behavior.

0 commit comments

Comments
 (0)