mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 14:25:17 +00:00
Removed double map
This commit is contained in:
@@ -117,9 +117,9 @@ async function readFilesInDirectory(
|
|||||||
const dirContent = await fs.readdir(filePath).then(Utils.removeHidden);
|
const dirContent = await fs.readdir(filePath).then(Utils.removeHidden);
|
||||||
|
|
||||||
return Promise.all(
|
return Promise.all(
|
||||||
dirContent
|
dirContent.map((fileName) =>
|
||||||
.map((fileName) => path.resolve(filePath, fileName))
|
getFileContents(path.resolve(filePath, fileName), 2),
|
||||||
.map((fileName) => getFileContents(fileName, 2)),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user