Skip to content

Commit 0c68b61

Browse files
committed
bugs fixed
1 parent b819166 commit 0c68b61

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/code-generator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,16 +112,16 @@ export const CodeGenerator = (function () {
112112
* @returns {string}
113113
*/
114114
randomChars: function (allowedChars, howMany) {
115-
const text = '';
116-
for (const i = 0; i < howMany; i++) {
115+
let text = '';
116+
for (let i = 0; i < howMany; i++) {
117117
text += allowedChars.charAt(Math.floor(Math.random() * allowedChars.length));
118118
}
119119
return text;
120120
}
121121
};
122122

123123
function loadExistingCodes (pattern, options) {
124-
const existingCodes = [];
124+
let existingCodes = [];
125125
if (typeof options.existingCodesLoader === 'function') {
126126
existingCodes = options.existingCodesLoader(pattern);
127127
}

0 commit comments

Comments
 (0)