Skip to content

Commit 948c174

Browse files
clean: lint code
1 parent 9dc73d9 commit 948c174

File tree

6 files changed

+302
-310
lines changed

6 files changed

+302
-310
lines changed

2d/entropy/entropy.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ export class EntropyAutomaton extends Automaton2D {
99
this.setRandomStateAndRender()
1010
}
1111

12-
private getMostFrequentColor = (
13-
colors: Cell[],
14-
): Cell | null => {
12+
private getMostFrequentColor = (colors: Cell[]): Cell | null => {
1513
if (colors.length === 0) return null
1614

1715
// Count occurrences of each color id

2d/quadlife/quadlife.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ export class QuadLifeAutomaton extends ConwayAutomaton {
1414
this.colorOff = this.colors[0] // First color for dead state
1515
}
1616

17-
private getQuadLifeColor = (
18-
aliveNeighbours: Cell[],
19-
): Cell | null => {
17+
private getQuadLifeColor = (aliveNeighbours: Cell[]): Cell | null => {
2018
if (aliveNeighbours.length === 0) return null
2119

2220
// Count occurrences of each color

0 commit comments

Comments
 (0)