Skip to content

Commit

Permalink
make sure we get a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Jul 14, 2020
1 parent bde8f34 commit b649044
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/util/minimal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ util.LongBits = require("./longbits");
* @memberof util
* @type {boolean}
*/
util.isNode = typeof global !== "undefined"
&& global
&& global.process
&& global.process.versions
&& global.process.versions.node;
util.isNode = Boolean(typeof global !== "undefined"
&& global
&& global.process
&& global.process.versions
&& global.process.versions.node);

/**
* Global object reference.
Expand Down

0 comments on commit b649044

Please sign in to comment.