From 7c3e24e4791f39143ea81f8eb7b233b43c3f8f56 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:48:27 +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 9db64529..d08c685b 100644 --- a/src/pages/Query/QuerySchemaList.tsx +++ b/src/pages/Query/QuerySchemaList.tsx @@ -43,7 +43,7 @@ const QuerySchemaList: FC = () => { {!(logStreamSchemaError) ? ( !loading && !!querySchema ? ( - !!querySchema.fields.length ? ( + (querySchema.fields.length) ? (