Corrected jshint warnings

This commit is contained in:
pyoor 2017-04-24 11:16:10 -04:00
parent 18631eab1f
commit 95a95f7317

View file

@ -44,13 +44,13 @@ make.numbers = {
return Math.pow(2, random.number(65)) + random.number(3) - 1; return Math.pow(2, random.number(65)) + random.number(3) - 1;
}, },
evenNumber: function (number) { evenNumber: function (number) {
return number % 2 == 1 ? ++number : number; return number % 2 === 1 ? ++number : number;
}, },
number: function () { number: function () {
let value = random.choose([ let value = random.choose([
[10, make.numbers.float], [10, make.numbers.float],
[10, [make.numbers.rangeNumber, make.numbers.tinyNumber]], [10, [make.numbers.rangeNumber, make.numbers.tinyNumber]],
[1, Make.numbers.unsignedNumber] [1, make.numbers.unsignedNumber]
]); ]);
return random.chance(10) ? -value : value; return random.chance(10) ? -value : value;
} }