Bug 1578683 Turn on ESLint rule prefer-boolean-length-check for toolkit and browser r=Standard8

Differential Revision: https://phabricator.services.mozilla.com/D45629
This commit is contained in:
monikamaheshwari
2019-09-14 09:39:26 +00:00
parent a041c7c4fa
commit edb30ffaec
302 changed files with 641 additions and 667 deletions

View File

@@ -436,7 +436,7 @@ var FullScreen = {
window.fullScreen &&
PopupNotifications.getNotification(
this._permissionNotificationIDs
).filter(n => !n.dismissed).length > 0
).filter(n => !n.dismissed).length
) {
this.exitDomFullScreen();
this._logWarningPermissionPromptFS("fullScreenCanceled");
@@ -513,7 +513,7 @@ var FullScreen = {
this._permissionNotificationIDs
).filter(n => !n.dismissed);
PopupNotifications.remove(notifications, true);
if (notifications.length > 0) {
if (notifications.length) {
this._logWarningPermissionPromptFS("promptCanceled");
}
}