Skip to content

Commit

Permalink
Resolves #44: eliminate ambiguity with setImmediate(done)
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Nov 13, 2022
1 parent 7e1c0dc commit 1d732b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,6 @@ function permalinks(options) {
const debug = metalsmith.debug('@metalsmith/permalinks')
debug.info('Running with options: %O', options)

setImmediate(done)

const defaultUniquePath = (targetPath, filesObj, filename, opts) => {
const { indexFile } = opts
let target
Expand Down Expand Up @@ -357,6 +355,8 @@ function permalinks(options) {
Object.keys(dupes).forEach((dupe) => {
files[dupe] = dupes[dupe]
})

done()
}
}

Expand Down

0 comments on commit 1d732b7

Please sign in to comment.