refactor: remove temp var

This commit is contained in:
Barış Soner Uşaklı
2019-09-23 22:31:55 -04:00
parent f9d6912b4a
commit b842057f26

View File

@@ -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);