Skip to content

Commit c89b41f

Browse files
committed
addressing lint issues
1 parent eee97d8 commit c89b41f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/deny.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@ export async function getDeniedChanges(
99
): Promise<Change[]> {
1010
const changesDenied: Change[] = []
1111

12-
let hasDeniedPackage = false
1312
for (const change of changes) {
1413
for (const denied of deniedPackages) {
1514
if (
1615
(!denied.version || change.version === denied.version) &&
1716
change.name === denied.name
1817
) {
1918
changesDenied.push(change)
20-
hasDeniedPackage = true
2119
}
2220
}
2321

@@ -30,7 +28,6 @@ export async function getDeniedChanges(
3028
}
3129
if (namespace && namespace === denied.namespace) {
3230
changesDenied.push(change)
33-
hasDeniedPackage = true
3431
}
3532
}
3633
}

src/main.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async function run(): Promise<void> {
210210
}
211211
}
212212

213-
function printVulnerabilitiesBlock(
213+
async function printVulnerabilitiesBlock(
214214
addedChanges: Changes,
215215
minSeverity: Severity,
216216
warnOnly: boolean
@@ -253,7 +253,7 @@ function printChangeVulnerabilities(change: Change): boolean {
253253
return change.vulnerabilities.length > 0
254254
}
255255

256-
function printLicensesBlock(
256+
async function printLicensesBlock(
257257
invalidLicenseChanges: Record<string, Changes>,
258258
warnOnly: boolean
259259
): Promise<boolean> {
@@ -383,10 +383,10 @@ function printScannedDependencies(changes: Changes): void {
383383
})
384384
}
385385

386-
function printDeniedDependencies(
386+
async function printDeniedDependencies(
387387
changes: Changes,
388388
config: ConfigurationOptions
389-
): Promise<boolean> {
389+
): Promise<boolean> {
390390
return core.group('Denied', async () => {
391391
let issueFound = false
392392

0 commit comments

Comments
 (0)