From 3c421d48c173f1bf6fc15935cc28bc8b6d6340fe Mon Sep 17 00:00:00 2001 From: Daniel Huigens Date: Thu, 10 Feb 2022 21:34:36 +0100 Subject: [PATCH] Don't mix operators Co-authored-by: larabr --- src/util.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/util.js b/src/util.js index b3ff14583..15b903bbc 100644 --- a/src/util.js +++ b/src/util.js @@ -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) {