Skip to content

Commit

Permalink
fix promise
Browse files Browse the repository at this point in the history
Signed-off-by: thalles <[email protected]>
  • Loading branch information
thalleslmF committed Jul 30, 2021
1 parent b7e019a commit d7d6773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions licence.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,10 @@ const checkLicense = async (fileNames, config) => {
)
const filesFiltered = removeIgnoredFiles(filesPr, fileNames)
const filesWithYear = await Promise.all(filesFiltered.map(
(file) => {
async (file) => {
return {
...file,
year : getCreationYear(file, config)
year : await getCreationYear(file, config)
}
}))
console.log(filesWithYear)
Expand Down

0 comments on commit d7d6773

Please sign in to comment.