From 72e05efc0fdc7741345fea9e2ca74e654b90dc29 Mon Sep 17 00:00:00 2001 From: Anton Dosov Date: Wed, 5 Jan 2022 12:40:50 +0100 Subject: [PATCH] remove redundant null checks --- .../data/public/ui/query_string_input/query_string_input.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx index fad0fd2481d16..a0b214d1be8c7 100644 --- a/src/plugins/data/public/ui/query_string_input/query_string_input.tsx +++ b/src/plugins/data/public/ui/query_string_input/query_string_input.tsx @@ -326,8 +326,8 @@ export default class QueryStringInputUI extends PureComponent { this.onQueryStringChange(query); if ( - (newSelectionStart !== null && this.inputRef?.selectionStart !== newSelectionStart) || - (newSelectionEnd !== null && this.inputRef?.selectionEnd !== newSelectionEnd) + this.inputRef?.selectionStart !== newSelectionStart || + this.inputRef?.selectionEnd !== newSelectionEnd ) { this.setState({ selectionStart: newSelectionStart,