mirror of
https://github.com/Alvin-Zilverstand/return-youtube-dislike.git
synced 2026-11-22 14:23:01 +01:00
use double bang operator for refactored method
This commit is contained in:
1 parent
0d73da29ca
commit
a9658654ef
1 file changed
+1
-1
@@ -57,7 +57,7 @@ const NEUTRAL_STATE = "NEUTRAL_STATE";
|
||||
}
|
||||
|
||||
function hasAvatarButton() {
|
||||
return document.querySelector('#avatar-btn') !== null
|
||||
return !!document.querySelector('#avatar-btn')
|
||||
}
|
||||
|
||||
function getState() {
|
||||
|
||||
Reference in new issue
Block a user