Skip to content

Commit f3e9097

Browse files
committed
[trivy] Remove default value from version arg of download method
1 parent 5048a05 commit f3e9097

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13211,7 +13211,7 @@ class Downloader {
1321113211
constructor() {
1321213212
this.githubClient = new rest_1.default();
1321313213
}
13214-
download(version = 'latest', trivyCmdDir = __dirname) {
13214+
download(version, trivyCmdDir = __dirname) {
1321513215
return __awaiter(this, void 0, void 0, function* () {
1321613216
const os = this.checkPlatform(process.platform);
1321713217
const downloadUrl = yield this.getDownloadUrl(version, os);

src/trivy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export class Downloader {
2525
}
2626

2727
public async download(
28-
version: string = 'latest',
28+
version: string,
2929
trivyCmdDir: string = __dirname,
3030
): Promise<string> {
3131
const os: string = this.checkPlatform(process.platform);

0 commit comments

Comments
 (0)