From 2b336e996e525bc6beb24a0ff51ea0e56815ba0c Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Fri, 31 Aug 2018 02:50:40 +0100 Subject: [PATCH] resourceloader: Remove redundant '!!' from startup.js The outer expression already casts the result to a boolean. Unit tests in startup.test.js also strictly assert that the returned values are boolean. Change-Id: I5709fcd0184b99d289b9cdfeccf8afa960806d59 --- resources/src/startup/startup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/src/startup/startup.js b/resources/src/startup/startup.js index ee72166072..03141b9fe3 100644 --- a/resources/src/startup/startup.js +++ b/resources/src/startup/startup.js @@ -55,7 +55,7 @@ window.isCompatible = function ( str ) { // https://caniuse.com/#feat=json / https://phabricator.wikimedia.org/T141344#2784065 ( function () { 'use strict'; - return !this && !!Function.prototype.bind && !!window.JSON; + return !this && Function.prototype.bind && window.JSON; }() ) && // https://caniuse.com/#feat=queryselector -- 2.20.1