Skip to content

Commit 5e6759b

Browse files
committed
rm unnecessary boolean type coercion
1 parent 0c7b2f8 commit 5e6759b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/modebar/manage.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ function getButtonGroups(gd, buttonsToRemove, buttonsToAdd) {
7373
var fullLayout = gd._fullLayout,
7474
fullData = gd._fullData;
7575

76-
var hasCartesian = !!fullLayout._has('cartesian'),
77-
hasGL3D = !!fullLayout._has('gl3d'),
78-
hasGeo = !!fullLayout._has('geo'),
79-
hasPie = !!fullLayout._has('pie'),
80-
hasGL2D = !!fullLayout._has('gl2d'),
81-
hasTernary = !!fullLayout._has('ternary');
76+
var hasCartesian = fullLayout._has('cartesian'),
77+
hasGL3D = fullLayout._has('gl3d'),
78+
hasGeo = fullLayout._has('geo'),
79+
hasPie = fullLayout._has('pie'),
80+
hasGL2D = fullLayout._has('gl2d'),
81+
hasTernary = fullLayout._has('ternary');
8282

8383
var groups = [];
8484

0 commit comments

Comments
 (0)