Skip to content

Commit

Permalink
Don't mix operators
Browse files Browse the repository at this point in the history
Co-authored-by: larabr <larabr+github@protonmail.com>
  • Loading branch information
twiss and larabr committed Feb 10, 2022
1 parent 45feb89 commit cd26a42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/util.js
Expand Up @@ -430,8 +430,7 @@ const util = {
return os.cpus().length;
}

// eslint-disable-next-line no-mixed-operators
return typeof navigator !== 'undefined' && navigator.hardwareConcurrency || 1;
return (typeof navigator !== 'undefined' && navigator.hardwareConcurrency) || 1;
},

isEmailAddress: function(data) {
Expand Down

0 comments on commit cd26a42

Please sign in to comment.