Skip to content

Commit 6870845

Browse files
authored
fix: use updated SPDX main branch when replenishing licenses (#1149)
Signed-off-by: Manuel Zedel <[email protected]>
1 parent aa4f95a commit 6870845

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/DefaultLicenseTextProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default class DefaultLicenseTextProvider {
1919

2020
public async retrieveLicenseText(license: string): Promise<string | null> {
2121
if (!this.cache[license]) {
22-
const res = await this.request(`${REPO_URL}/master/text/${license}.txt`)
22+
const res = await this.request(`${REPO_URL}/main/text/${license}.txt`)
2323
this.cache[license] = res
2424
}
2525

test/unit/DefaultLicenseTextProvider.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ describe('defaultLicenseTextProvider', () => {
6262
expect(result).toBe(null)
6363
expect(mockRequest).toHaveBeenCalledTimes(1)
6464
expect(mockRequest).toHaveBeenCalledWith(
65-
`${REPO_URL}/master/text/${unknownLicenseName}.txt`,
65+
`${REPO_URL}/main/text/${unknownLicenseName}.txt`,
6666
)
6767
})
6868

0 commit comments

Comments
 (0)