From acb357a5627cb22f2260752746afc1653106955b Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Fri, 7 Jul 2023 15:54:11 +0000 Subject: [PATCH] refactor: remove unnecessary boolean casts In contexts such as an `if` statement's test where the result of the expression will already be coerced to a `Boolean`, casting to a `Boolean` via double negation (`!!`) or a `Boolean` call is unnecessary. --- src/pages/Query/QuerySchemaList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Query/QuerySchemaList.tsx b/src/pages/Query/QuerySchemaList.tsx index 387f8327..1d120750 100644 --- a/src/pages/Query/QuerySchemaList.tsx +++ b/src/pages/Query/QuerySchemaList.tsx @@ -43,7 +43,7 @@ const QuerySchemaList: FC = () => { {!(logStreamSchemaError) ? ( !loading && Boolean(querySchema) ? ( - Boolean(querySchema.fields.length) ? ( + (querySchema.fields.length) ? (