Skip to content

Commit 51da56a

Browse files
committed
feat: license file gathering
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 028dc6c commit 51da56a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/builders/license.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export interface FetchResult {
4343

4444
const LICENSE_FILENAME_PATTERN = /^(?:UN)?LICEN[CS]E|.\.LICEN[CS]E$|^NOTICE$/i
4545

46-
type ErrorReporter = (e:Error) => void
46+
type ErrorReporter = (e:Error) => any
4747

4848
/* eslint-disable-next-line @typescript-eslint/no-empty-function -- ack */
4949
function noop ():void {}
@@ -85,8 +85,8 @@ export class LicenseEvidenceFetcher {
8585
}
8686
try {
8787
yield {
88-
file,
8988
filePath,
89+
file,
9090
text: new Attachment(
9191
this.#fs.readFileSync(filePath).toString('base64'),
9292
{

0 commit comments

Comments
 (0)