From cd58c9fbc602b918d45fa703ffb92b1fd920277d Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Thu, 21 Apr 2016 15:05:15 +0200 Subject: [PATCH] put single statement if in one line --- src/doodle3dapi.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/doodle3dapi.js b/src/doodle3dapi.js index 19eb056..76f0284 100644 --- a/src/doodle3dapi.js +++ b/src/doodle3dapi.js @@ -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; }