From 16759460b6ca3b92b691483aafb9da2517b002bd Mon Sep 17 00:00:00 2001 From: williamlardier Date: Fri, 29 Nov 2024 12:36:58 +0100 Subject: [PATCH] testing --- lib/s3routes/routes/routeDELETE.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/s3routes/routes/routeDELETE.ts b/lib/s3routes/routes/routeDELETE.ts index 484799c10..d439b18ec 100644 --- a/lib/s3routes/routes/routeDELETE.ts +++ b/lib/s3routes/routes/routeDELETE.ts @@ -58,10 +58,8 @@ export default function routeDELETE( * the object, the errors NoSuchKey and NoSuchVersion should not * be sent back as a response. */ - if (err && ( - !(err instanceof ArsenalError) || - (!err.is.NoSuchKey && err.is.NoSuchVersion) - )) { + // @ts-ignore + if (err && !err.is.NoSuchKey && !err.is.NoSuchVersion) { return routesUtils.responseNoBody(err, corsHeaders, response, undefined, log); }