From 818343f4526968c810da91f64f5165d4bafff1bc Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Mon, 13 Jul 2020 12:20:10 +0100 Subject: [PATCH] Fixed lint errors with PR #5159 --- src/gameobjects/components/Animation.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/gameobjects/components/Animation.js b/src/gameobjects/components/Animation.js index 75a515740..f929a8aca 100644 --- a/src/gameobjects/components/Animation.js +++ b/src/gameobjects/components/Animation.js @@ -330,10 +330,13 @@ var Animation = new Class({ key = key.key; } - if(this.nextAnim === null){ - this.nextAnim = key; - } else { - this.nextAnimsQueue.push(key); + if (this.nextAnim === null) + { + this.nextAnim = key; + } + else + { + this.nextAnimsQueue.push(key); } return this.parent;