use double bang operator for refactored method

This commit is contained in:
Leon Bubova committed 2021-12-12 21:49:39 +01:00
1 parent 0d73da29ca
commit a9658654ef
1 file changed
+1 -1
@@ -57,7 +57,7 @@ const NEUTRAL_STATE = "NEUTRAL_STATE";
} }
function hasAvatarButton() { function hasAvatarButton() {
return document.querySelector('#avatar-btn') !== null return !!document.querySelector('#avatar-btn')
} }
function getState() { function getState() {