Skip to content

Commit a1970b5

Browse files
committed
[index] Not use conditional operator to substitute into ignoreUnfixed flag
1 parent 59a482f commit a1970b5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6583,7 +6583,7 @@ function run() {
65836583
const trivyOptions = {
65846584
severity: core.getInput('severity').replace(/\s+/g, ''),
65856585
vulnType: core.getInput('vuln_type').replace(/\s+/g, ''),
6586-
ignoreUnfixed: core.getInput('ignore_unfixed').toLowerCase() === 'true' ? true : false,
6586+
ignoreUnfixed: core.getInput('ignore_unfixed').toLowerCase() === 'true',
65876587
};
65886588
const downloader = new trivy_1.Downloader();
65896589
const trivyCmdPath = yield downloader.download(trivyVersion);

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ async function run() {
2424
const trivyOptions: TrivyOption = {
2525
severity: core.getInput('severity').replace(/\s+/g, ''),
2626
vulnType: core.getInput('vuln_type').replace(/\s+/g, ''),
27-
ignoreUnfixed:
28-
core.getInput('ignore_unfixed').toLowerCase() === 'true' ? true : false,
27+
ignoreUnfixed: core.getInput('ignore_unfixed').toLowerCase() === 'true',
2928
};
3029

3130
const downloader = new Downloader();

0 commit comments

Comments
 (0)