From 63449b26942bf16d7fa17b8b3cb304b533b80d08 Mon Sep 17 00:00:00 2001 From: grosbouddha Date: Mon, 14 Sep 2015 21:53:29 +0200 Subject: [PATCH] Fixing lint errors --- src/js/service/SelectedColorsService.js | 4 ++-- src/js/tools/drawing/DitheringTool.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/service/SelectedColorsService.js b/src/js/service/SelectedColorsService.js index 6d3e3d38..8ef6a9b2 100644 --- a/src/js/service/SelectedColorsService.js +++ b/src/js/service/SelectedColorsService.js @@ -12,8 +12,8 @@ }; ns.SelectedColorsService.prototype.getColors = function () { - if (this.primaryColor_ == null || this.secondaryColor_ == null) { - throw "SelectedColorsService not properly intialized."; + if (this.primaryColor_ === null || this.secondaryColor_ === null) { + throw 'SelectedColorsService not properly intialized.'; } return [this.primaryColor_, this.secondaryColor_]; }; diff --git a/src/js/tools/drawing/DitheringTool.js b/src/js/tools/drawing/DitheringTool.js index 95c8c4f2..34c70ce5 100644 --- a/src/js/tools/drawing/DitheringTool.js +++ b/src/js/tools/drawing/DitheringTool.js @@ -20,7 +20,7 @@ var ditheringColor; var currentColors = pskl.app.selectedColorsService.getColors(); // XOR on either row or col parity. - if (((col % 2 == 0) && !(row % 2 == 0)) || (!(col % 2 == 0) && (row % 2 == 0))) { + if ((col % 2 === 0 && row % 2 !== 0) || (col % 2 !== 0 && row % 2 === 0)) { ditheringColor = currentColors[0]; } else { ditheringColor = currentColors[1];