Skip to content

Commit b05d245

Browse files
committed
fix lint and format
1 parent 4e523d7 commit b05d245

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

js/tools/fill.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function colorsMatch(a, b) {
4949
}
5050

5151
// taken from SO: https://stackoverflow.com/a/56221940/3056783
52-
function floodFill(ctx, x, y, fillColor, { state }) {
52+
function floodFill(ctx, x, y, fillColor) {
5353
showLoader();
5454
// read the pixels in the canvas
5555
const imageData = ctx.getImageData(0, 0, ctx.canvas.width, ctx.canvas.height);

js/ui/panel.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,7 @@ function activatePanelButtonOnCoordinates(x, y) {
4646
bubbles: false,
4747
});
4848

49-
if (
50-
button instanceof UiButton
51-
) {
49+
if (button instanceof UiButton) {
5250
button.click(clickEvent);
5351

5452
return;

js/ui/tool.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ export class ToolButton extends UiButton {
5252

5353
#onClick = () => {
5454
setTool(this.#tool, { state: this.#state });
55-
}
55+
};
5656
}

0 commit comments

Comments
 (0)