Fix eslint lint error
This commit is contained in:
parent
892760b3f9
commit
687444e547
|
@ -24,7 +24,7 @@ const paths = {
|
||||||
// calling the callback for all normal files found.
|
// calling the callback for all normal files found.
|
||||||
const walkDir = async (basePath, cb, filter) => {
|
const walkDir = async (basePath, cb, filter) => {
|
||||||
const files = await fs.promises.readdir(basePath);
|
const files = await fs.promises.readdir(basePath);
|
||||||
const paths = files.map((filename) => path.join(basePath, filename));
|
const paths = files.map(filename => path.join(basePath, filename));
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
paths.map(async (filepath) => {
|
paths.map(async (filepath) => {
|
||||||
const stats = await fs.promises.lstat(filepath);
|
const stats = await fs.promises.lstat(filepath);
|
||||||
|
|
Loading…
Reference in New Issue