Skip to content

Commit 784b39d

Browse files
committed
chore: Use let instead of var to declare mutable variables
1 parent db731f1 commit 784b39d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tasks/instructions/setViewport.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ module.exports = {
66
},
77

88
perform: function (grunt, target, client, command, options) {
9-
var setViewport = command.setViewport
10-
var lastViewport = options.lastViewport
11-
var prefix
9+
const lastViewport = options.lastViewport
10+
let setViewport = command.setViewport
11+
let prefix
1212
if (!(setViewport.width && setViewport.height)) {
1313
prefix = 'original '
1414
setViewport = options.viewport

tasks/instructions/wait.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module.exports = {
66
},
77

88
perform: function (grunt, target, client, command, options) {
9-
var wait = command.wait
9+
let wait = command.wait
1010
if (!Array.isArray(wait)) {
1111
wait = wait ? [wait] : []
1212
}

0 commit comments

Comments
 (0)