Skip to content

Commit 19b91dc

Browse files
committed
Minor nits
1 parent c331d42 commit 19b91dc

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/commands/organization/output-license-policy.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export async function outputLicensePolicy(
3232
const rules = result.data['license_policy']!
3333
const entries = rules ? Object.entries(rules) : []
3434
const mapped: Array<[string, string]> = entries.map(
35-
([key, value]) =>
35+
({ 0: key, 1: value }) =>
3636
[key, (value as any)?.['allowed'] ? ' yes' : ' no'] as const,
3737
)
3838
mapped.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))

src/commands/organization/output-security-policy.mts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ export async function outputSecurityPolicy(
3838
const entries: Array<
3939
[string, { action: 'defer' | 'error' | 'warn' | 'monitor' | 'ignore' }]
4040
> = rules ? Object.entries(rules) : []
41-
const mapped: Array<[string, string]> = entries.map(([key, value]) => [
42-
key,
43-
value.action,
44-
])
41+
const mapped: Array<[string, string]> = entries.map(
42+
({ 0: key, 1: value }) => [key, value.action],
43+
)
4544
mapped.sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))
4645
logger.log(mdTableOfPairs(mapped, ['name', 'action']))
4746
logger.log('')

src/commands/scan/output-create-new-scan.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export async function outputCreateNewScan(
2929
}
3030

3131
if (!result.data.id) {
32-
logger.fail('Did not receive a scan ID from the API...')
32+
logger.fail('Did not receive a scan ID from the API.')
3333
process.exitCode = 1
3434
}
3535

0 commit comments

Comments
 (0)