Skip to content

Commit e84d651

Browse files
committed
Use ===
1 parent 09008d5 commit e84d651

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/duration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Duration {
6565
*/
6666
eq(other) {
6767
if (other instanceof Duration) {
68-
return this._nanoseconds == other.nanoseconds;
68+
return this._nanoseconds === other.nanoseconds;
6969
}
7070
throw new TypeError(
7171
`Can't compare duration with object of type: ${other.constructor.name}`

lib/time.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ class Time {
150150
if (other._clockType !== this._clockType) {
151151
throw new TypeError("Can't compare times with different clock types");
152152
}
153-
return this._nanoseconds == other.nanoseconds;
153+
return this._nanoseconds === other.nanoseconds;
154154
}
155155
throw new TypeError('Invalid argument');
156156
}

0 commit comments

Comments
 (0)