From 507f349533576579773526b266cecb4c3965e528 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Thu, 5 Dec 2024 18:29:12 +0100 Subject: [PATCH] test --- lib/s3routes/routes/routeDELETE.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);