Skip to content

Commit

Permalink
remove redundant null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Jan 5, 2022
1 parent 0e07ea6 commit 72e05ef
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,8 @@ export default class QueryStringInputUI extends PureComponent<Props, State> {
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,
Expand Down

0 comments on commit 72e05ef

Please sign in to comment.