Better variables scoping

This commit is contained in:
Frederic Junod
2018-01-17 09:05:39 +01:00
parent ee348c50e9
commit 4c5ca75ca6
21 changed files with 93 additions and 147 deletions
+1 -2
View File
@@ -91,8 +91,7 @@ export const fromString = (
} else {
if (cacheSize >= MAX_CACHE_SIZE) {
let i = 0;
let key;
for (key in cache) {
for (const key in cache) {
if ((i++ & 3) === 0) {
delete cache[key];
--cacheSize;