diff --git a/rustfs/src/storage/ecfs.rs b/rustfs/src/storage/ecfs.rs index 29a78816..1874f87c 100644 --- a/rustfs/src/storage/ecfs.rs +++ b/rustfs/src/storage/ecfs.rs @@ -2819,7 +2819,7 @@ impl S3 for FS { } } Err(err) => { - if !is_err_object_not_found(&err) || !is_err_version_not_found(&err) { + if !is_err_object_not_found(&err) && !is_err_version_not_found(&err) { return Err(ApiError::from(err).into()); }