Skip to content

Commit d2628db

Browse files
[autofix.ci] apply automated fixes
1 parent a6f78e8 commit d2628db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/pages/package-timeline/[[org]]/[packageName].vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async function loadMore() {
9797
9898
const SIZE_INCREASE_THRESHOLD = 0.25
9999
const DEP_INCREASE_THRESHOLD = 5
100-
const NO_LICENSE_VALUES = ['', 'UNLICENSED']
100+
const NO_LICENSE_VALUES = new Set(['', 'UNLICENSED'])
101101
102102
const sizeCache = shallowReactive(new Map<string, InstallSizeResult>())
103103
const fetchingVersions = shallowReactive(new Set<string>())
@@ -216,8 +216,8 @@ const versionSubEvents = computed(() => {
216216
const currentLicense = current.license ?? 'Unknown'
217217
const previousLicense = previous.license ?? 'Unknown'
218218
if (currentLicense !== previousLicense) {
219-
const hadNoLicense = NO_LICENSE_VALUES.includes(previousLicense)
220-
const hasNoLicense = NO_LICENSE_VALUES.includes(currentLicense)
219+
const hadNoLicense = NO_LICENSE_VALUES.has(previousLicense)
220+
const hasNoLicense = NO_LICENSE_VALUES.has(currentLicense)
221221
events.push({
222222
key: 'license',
223223
positive: hadNoLicense && !hasNoLicense,

0 commit comments

Comments
 (0)