Skip to content

Node.js based forum software built for the modern web

refactor: remove temp var

Barış Soner Uşaklıb842057f26b4
diff --git a/src/file.js b/src/file.js
index 19b8fd94c9..7a9a366076 100644
--- a/src/file.js
+++ b/src/file.js
@@ -165,8 +165,7 @@ file.walk = async function (dir) {
const res = path.resolve(dir, subdir);
return (await statAsync(res)).isDirectory() ? file.walk(res) : res;
}));
- var result = files.reduce((a, f) => a.concat(f), []);
- return result;
+ return files.reduce((a, f) => a.concat(f), []);
};
require('./promisify')(file);