Skip to content

Commit

Permalink
Merge pull request #30 from thalleslmF/pr-204
Browse files Browse the repository at this point in the history
fix promise
  • Loading branch information
thalleslmF authored Jul 30, 2021
2 parents 3b5d4fe + d7d6773 commit 2d757c2
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 2d757c2

Please sign in to comment.