mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
refactor: remove temp var
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user