Skip to content
Permalink
Browse files

Remove unnecessary null check before typeof.

PiperOrigin-RevId: 255213685
  • Loading branch information...
gkdn authored and Copybara-Service committed Jun 26, 2019
1 parent dab9035 commit 4348fd3d8a9c4ceac40133c68092f2df082869ac
@@ -46,7 +46,7 @@ class JavaScriptFunction {
* @public
*/
static $isInstance(instance) {
return instance != null && typeof instance == 'function';
return typeof instance == 'function';
}

/**
@@ -1,12 +1,15 @@
Integration tests size report:
**************************************
There are 0 optimized size changes.
Total size (of already existing tests) did not change.
There are 1 optimized size changes.
Total optimized size (of already existing tests) changed from
1135440 to 1135430 bytes (100%->100.0%) and from
418119 to 418117 bytes (100%->100.0%) gzipped.


Shrinkage report highlights:
**************************************
none
old new
13968 13966 jsinteroptests (-0.0%)


Expansion report highlights:
@@ -17,10 +20,10 @@ Expansion report highlights:
Uncompiled bundle reports:
**************************************
old new
5013936 4826124 box2d_default (-3.7%)
3131515 2943703 box2d_default.minified (-6.0%)
3183976 3042754 emptyclass (-4.4%)
2110754 1969532 emptyclass.minified (-6.7%)
4826124 4826104 box2d_default (-0.0%)
2943703 2943683 box2d_default.minified (-0.0%)
3042754 3042734 emptyclass (-0.0%)
1969532 1969512 emptyclass.minified (-0.0%)


All reports:
@@ -139,7 +142,7 @@ All reports:
1437 1437 jsfunctionbridge (unchanged)
1902 1902 jsfunctiontypeannotation (unchanged)
1096 1096 jsinnerclass (unchanged)
13968 13968 jsinteroptests (unchanged)
13968 13966 jsinteroptests (-0.0%)
1106 1106 jsmethodoverride (unchanged)
1021 1021 jsoverlay (unchanged)
1034 1034 jsoverlaystaticrefs (unchanged)

0 comments on commit 4348fd3

Please sign in to comment.
You can’t perform that action at this time.