put single statement if in one line
This commit is contained in:
parent
545f932b94
commit
cd58c9fbc6
|
@ -34,16 +34,10 @@ export default class extends EventDispatcher {
|
|||
|
||||
setAutoUpdate (autoUpdate = true, updateInterval = 1000) {
|
||||
this.updateInterval = updateInterval;
|
||||
|
||||
if (this.autoUpdate === autoUpdate) {
|
||||
return;
|
||||
}
|
||||
if (this.autoUpdate === autoUpdate) return;
|
||||
|
||||
this.autoUpdate = autoUpdate;
|
||||
|
||||
if (autoUpdate) {
|
||||
this._update();
|
||||
}
|
||||
if (autoUpdate) this._update();
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue