From 43f989919ce962a9345bced965956faf98e2de9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=A1vid=20Szab=C3=B3?= Date: Fri, 23 Sep 2016 13:30:21 +0200 Subject: [PATCH] Remove unneccessary type check --- src/js/model/Frame.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/js/model/Frame.js b/src/js/model/Frame.js index 89ec6335..5591f594 100644 --- a/src/js/model/Frame.js +++ b/src/js/model/Frame.js @@ -110,9 +110,7 @@ if (this.containsPixel(x, y)) { var index = y * this.width + x; var p = this.pixels[index]; - if (typeof color === 'string') { - color = pskl.utils.colorToInt(color); - } + color = pskl.utils.colorToInt(color); if (p !== color) { this.pixels[index] = color || pskl.utils.colorToInt(Constants.TRANSPARENT_COLOR);