Skip to content

Commit dbf9515

Browse files
committed
Fix eslint warnings
1 parent 4c658fe commit dbf9515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Data/EuclideanRing.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ exports.intDegree = function (x) {
88
// https://en.m.wikipedia.org/wiki/Modulo_operation.
99
exports.intDiv = function (x) {
1010
return function (y) {
11-
if (y == 0) return 0;
11+
if (y === 0) return 0;
1212
return y > 0 ? Math.floor(x / y) : -Math.floor(x / -y);
1313
};
1414
};
1515

1616
exports.intMod = function (x) {
1717
return function (y) {
18-
if (y == 0) return 0;
18+
if (y === 0) return 0;
1919
var yy = Math.abs(y);
2020
return ((x % yy) + yy) % yy;
2121
};

0 commit comments

Comments
 (0)