From 2358cffde5a0d183b908e91c514d9743fa7d010c Mon Sep 17 00:00:00 2001 From: Jean-Marc Millet Date: Tue, 3 Sep 2024 16:20:12 +0200 Subject: [PATCH] fix redundant boolean error --- src/react/utils/hooks.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/react/utils/hooks.ts b/src/react/utils/hooks.ts index a5867292e..1c64c9e16 100644 --- a/src/react/utils/hooks.ts +++ b/src/react/utils/hooks.ts @@ -295,12 +295,10 @@ export const useCheckIfBucketEmpty = (bucketName: string) => { ); const isBucketEmpty = object - ? !Boolean( - [ - ...(object.Versions ? object.Versions : []), - ...(object.DeleteMarkers ? object.DeleteMarkers : []), - ].length, - ) + ? ![ + ...(object.Versions ? object.Versions : []), + ...(object.DeleteMarkers ? object.DeleteMarkers : []), + ].length : true; return {