diff --git a/lib/s3routes/routes/routeDELETE.ts b/lib/s3routes/routes/routeDELETE.ts index 6235edc5f..4c4c73bfb 100644 --- a/lib/s3routes/routes/routeDELETE.ts +++ b/lib/s3routes/routes/routeDELETE.ts @@ -62,11 +62,11 @@ export default function routeDELETE( }); log.debug(`condition on callAPO method ${err && ( !(err instanceof ArsenalError) || - (!err.is.NoSuchKey && err.is.NoSuchVersion) + (!err.is.NoSuchKey && !err.is.NoSuchVersion) )}`); if (err && ( !(err instanceof ArsenalError) || - (!err.is.NoSuchKey && err.is.NoSuchVersion) + (!err.is.NoSuchKey && !err.is.NoSuchVersion) )) { return routesUtils.responseNoBody(err, corsHeaders, response, undefined, log);