mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
Remove unneccessary type check
This commit is contained in:
parent
0ec8036670
commit
43f989919c
@ -110,9 +110,7 @@
|
|||||||
if (this.containsPixel(x, y)) {
|
if (this.containsPixel(x, y)) {
|
||||||
var index = y * this.width + x;
|
var index = y * this.width + x;
|
||||||
var p = this.pixels[index];
|
var p = this.pixels[index];
|
||||||
if (typeof color === 'string') {
|
|
||||||
color = pskl.utils.colorToInt(color);
|
color = pskl.utils.colorToInt(color);
|
||||||
}
|
|
||||||
|
|
||||||
if (p !== color) {
|
if (p !== color) {
|
||||||
this.pixels[index] = color || pskl.utils.colorToInt(Constants.TRANSPARENT_COLOR);
|
this.pixels[index] = color || pskl.utils.colorToInt(Constants.TRANSPARENT_COLOR);
|
||||||
|
Loading…
Reference in New Issue
Block a user