Skip to content

Commit 152d8e2

Browse files
committed
Prettier
1 parent b99756e commit 152d8e2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: src/licenses.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import spdxSatisfies from 'spdx-satisfies'
2-
import { Change, Changes } from './schemas'
3-
import { isSPDXValid, octokitClient } from './utils'
4-
import { PackageURL } from 'packageurl-js'
2+
import {Change, Changes} from './schemas'
3+
import {isSPDXValid, octokitClient} from './utils'
4+
import {PackageURL} from 'packageurl-js'
55

66
/**
77
* Loops through a list of changes, filtering and returning the
@@ -29,7 +29,7 @@ export async function getInvalidLicenseChanges(
2929
licenseExclusions?: string[]
3030
}
3131
): Promise<InvalidLicenseChanges> {
32-
const { allow, deny } = licenses
32+
const {allow, deny} = licenses
3333
const licenseExclusions = licenses.licenseExclusions?.map(
3434
(pkgUrl: string) => {
3535
return PackageURL.fromString(encodeURI(pkgUrl))
@@ -127,7 +127,7 @@ const fetchGHLicense = async (
127127
}
128128
}
129129

130-
const parseGitHubURL = (url: string): { owner: string; repo: string } | null => {
130+
const parseGitHubURL = (url: string): {owner: string; repo: string} | null => {
131131
try {
132132
const parsed = new URL(url)
133133
if (parsed.host !== 'github.com') {
@@ -137,7 +137,7 @@ const parseGitHubURL = (url: string): { owner: string; repo: string } | null =>
137137
if (components.length < 3) {
138138
return null
139139
}
140-
return { owner: components[1], repo: components[2] }
140+
return {owner: components[1], repo: components[2]}
141141
} catch (_) {
142142
return null
143143
}

0 commit comments

Comments
 (0)