Skip to content

Commit

Permalink
More linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
john-sharratt committed Jun 15, 2023
1 parent 27b0041 commit d7924a1
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions lib/virtual-fs/src/overlay_fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,12 @@ where
// we are done as the secondary file or directory has been earlier
// deleted via a white out (when the create flag is set then
// the white out marker is ignored)
if !conf.create {
if ops::has_white_out(&self.primary, path) {
tracing::trace!(
path=%path.display(),
"The file has been whited out",
);
return Err(FsError::EntryNotFound);
}
if !conf.create && ops::has_white_out(&self.primary, path) {
tracing::trace!(
path=%path.display(),
"The file has been whited out",
);
return Err(FsError::EntryNotFound);
}

// Determine if a mutation will be possible with the opened file
Expand Down

0 comments on commit d7924a1

Please sign in to comment.