put single statement if in one line

This commit is contained in:
casperlamboo 2016-04-21 15:05:15 +02:00
parent 545f932b94
commit cd58c9fbc6
1 changed files with 2 additions and 8 deletions

View File

@ -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;
}