refactor: remove temp var

v1.18.x
Barış Soner Uşaklı 5 years ago
parent f9d6912b4a
commit b842057f26

@ -165,8 +165,7 @@ file.walk = async function (dir) {
const res = path.resolve(dir, subdir); const res = path.resolve(dir, subdir);
return (await statAsync(res)).isDirectory() ? file.walk(res) : res; return (await statAsync(res)).isDirectory() ? file.walk(res) : res;
})); }));
var result = files.reduce((a, f) => a.concat(f), []); return files.reduce((a, f) => a.concat(f), []);
return result;
}; };
require('./promisify')(file); require('./promisify')(file);

Loading…
Cancel
Save