Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
williamlardier committed Nov 29, 2024
1 parent e601390 commit 1675946
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/s3routes/routes/routeDELETE.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1675946

Please sign in to comment.