From: Timo Tijhof Date: Fri, 31 Aug 2018 01:50:40 +0000 (+0100) Subject: resourceloader: Remove redundant '!!' from startup.js X-Git-Tag: 1.34.0-rc.0~4239^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=2b336e996e525bc6beb24a0ff51ea0e56815ba0c;p=lhc%2Fweb%2Fwiklou.git 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 --- 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