Skip to content

Commit

Permalink
Removes missing metalsmith.match < v2.4.1 error
Browse files Browse the repository at this point in the history
  • Loading branch information
webketje committed Jul 2, 2023
1 parent 96a804e commit 8c98954
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,14 +148,6 @@ function initializeInPlace(options = defaultOptions) {
)
}

// throw update error in case users didn't see the peerDependency warning
/* istanbul ignore next */
if (!metalsmith.match) {
throw new Error(
'This version of @metalsmith/in-place requires metalsmith^2.4.1\'s newly added match method\nPlease update metalsmith"'
)
}

const matchedFiles = metalsmith.match(settings.pattern)

// Filter files by validity, pass basename to avoid dots in folder path
Expand Down

0 comments on commit 8c98954

Please sign in to comment.