mirror of
https://github.com/Doodle3D/Doodle3D-API
synced 2024-11-14 00:17:55 +01:00
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
Block a user