Skip to content

Commit a330778

Browse files
committed
chore: switch some const back to let
1 parent 189e23d commit a330778

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

features/extra/assertions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ assert.match = function assertMatches(string, matcher, message) {
88
};
99

1010
assert.contains = function assertContains(list, matcher, message) {
11-
const found = false;
11+
let found = false;
1212
for (const i in list) {
1313
if (!list.hasOwnProperty(i)) continue;
1414
if (typeof matcher === "function") {

features/glacier/step_definitions/glacier.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ Then(/^I send the next part$/, function(callback) {
111111
});
112112

113113
Then(/^I send the Glacier archive data in chunks$/, function(callback) {
114-
const numPartsLeft = Math.ceil(this.uploadData.length / this.partSize);
115-
for (const i = 0; i < this.uploadData.length; i += this.partSize) {
114+
let numPartsLeft = Math.ceil(this.uploadData.length / this.partSize);
115+
for (let i = 0; i < this.uploadData.length; i += this.partSize) {
116116
const end = Math.min(i + this.partSize, this.uploadData.length);
117117
const buf = this.uploadData.slice(i, end);
118118
const range = "bytes " + i + "-" + (end - 1) + "/*";

features/rds/step_definitions/rds.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Then(/the value at "([^"]*)" should contain "([^"]*)" with "([^"]*)"/, function(
2626
callback
2727
) {
2828
const member = jmespath.search(this.data, path);
29-
const containDefault = false;
29+
let containDefault = false;
3030
member.forEach(function(config) {
3131
if (config[key] === value) {
3232
containDefault = true;

0 commit comments

Comments
 (0)