Skip to content

Commit 075c7b1

Browse files
committed
switch from var to const
1 parent 79b804f commit 075c7b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/animationsController.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -272,12 +272,12 @@ module.exports = class AnimationsController {
272272
* will schedule move for default pegman.
273273
*/
274274
scheduleMove(endX, endY, timeForAnimation, id) {
275-
var startX = this.maze.getPegmanX(id);
276-
var startY = this.maze.getPegmanY(id);
277-
var direction = this.maze.getPegmanD(id);
275+
const startX = this.maze.getPegmanX(id);
276+
const startY = this.maze.getPegmanY(id);
277+
const direction = this.maze.getPegmanD(id);
278278

279-
var deltaX = (endX - startX);
280-
var deltaY = (endY - startY);
279+
const deltaX = (endX - startX);
280+
const deltaY = (endY - startY);
281281
var numFrames;
282282
var timePerFrame;
283283

0 commit comments

Comments
 (0)