Skip to content

Commit

Permalink
Remove unnecessary null checks
Browse files Browse the repository at this point in the history
  • Loading branch information
sarayourfriend committed Oct 19, 2020
1 parent 6631056 commit 08c3bd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/search/src/search.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ class Search extends React.Component< Props, State > {
scrollOverlay = () => {
this.overlay &&
window.requestAnimationFrame( () => {
if ( this.overlay?.current && this.searchInput?.current ) {
if ( this.overlay.current && this.searchInput.current ) {
this.overlay.current.scrollLeft = this.getScrollLeft( this.searchInput.current );
}
} );
Expand Down

0 comments on commit 08c3bd4

Please sign in to comment.