mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Fixing lint errors
This commit is contained in:
parent
ed32ddc747
commit
63449b2694
@ -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 New Issue
Block a user