Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
-const isCIEnvironment = process.env.CI !== undefined
+const isCIEnvironment = process.env.CI != null
if (isCIEnvironment === false) {
// eslint-disable-next-line n/no-unpublished-require
require('husky').install()
),
Benchmark.add('Crypto random integer generator', (max = maximum, min = 0) => {
max = Math.floor(max)
- if (min !== undefined && min !== 0) {
+ if (min != null && min !== 0) {
min = Math.ceil(min)
return Math.floor(crypto.randomInt(min, max + 1))
}