Fix linting

This commit is contained in:
Sander Declerck 2026-05-05 11:01:49 +02:00
parent 24127792d4
commit 6442c4cf53
No known key found for this signature in database

View file

@ -179,20 +179,6 @@ function getMostRecentTag(tagList) {
return current;
}
/**
* Checks if a package name matches an exclusion pattern.
* Supports trailing wildcard (*) for prefix matching.
* @param {string} packageName
* @param {string} pattern
* @returns {boolean}
*/
function matchesExclusionPattern(packageName, pattern) {
if (pattern.endsWith("/*")) {
return packageName.startsWith(pattern.slice(0, -1));
}
return packageName === pattern;
}
/**
* @param {Buffer} body
* @param {NodeJS.Dict<string | string[]> | undefined} headers