Fixing lint errors
This commit is contained in:
parent
ed32ddc747
commit
63449b2694
2 changed files with 3 additions and 3 deletions
|
@ -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_];
|
||||
};
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue