Skip to content

Commit 0a7605b

Browse files
authored
Remove variable declaration
Fix unnecessary variable declaration.
1 parent cbcdeca commit 0a7605b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/data/examples/en/09_Simulate/04_GameOfLife.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,10 @@ let columns;
1010
let rows;
1111
let board;
1212
let next;
13-
let framerate;
1413

1514
function setup() {
1615
// Set simulation framerate to 10 to avoid flickering
17-
framerate = 10;
18-
frameRate(framerate);
16+
frameRate(10);
1917
createCanvas(720, 400);
2018
w = 20;
2119
// Calculate columns and rows

0 commit comments

Comments
 (0)