Skip to content

Commit 4a13086

Browse files
author
Claudéric Demers
authored
lint: fix linting issue (#610)
1 parent 3fd83f9 commit 4a13086

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/AutoScroller/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ export default class AutoScroller {
55
}
66

77
clear() {
8-
if (this.interval != null) {
9-
clearInterval(this.interval);
10-
this.interval = null;
8+
if (this.interval == null) {
9+
return;
1110
}
11+
12+
clearInterval(this.interval);
13+
this.interval = null;
1214
}
1315

1416
update({translate, minTranslate, maxTranslate, width, height}) {

0 commit comments

Comments
 (0)