resourceloader: Remove redundant '!!' from startup.js
authorTimo Tijhof <krinklemail@gmail.com>
Fri, 31 Aug 2018 01:50:40 +0000 (02:50 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Fri, 31 Aug 2018 01:51:20 +0000 (02:51 +0100)
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

index ee72166..03141b9 100644 (file)
@@ -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