Skip to content

Commit bc10db4

Browse files
committed
Fix URL check condition
1 parent ee1d130 commit bc10db4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ async function setup() {
1919
console.log("version:::: " +version)
2020
console.log("URL:::: " +url)
2121
// If a URL not set, generate the URL based on the version
22-
if(url == null || url.trim() != '') {
22+
if(url == null || url.trim() == '') {
2323
url = getDownloadURL(version)
2424
}
2525
console.log(`Downloading the APICTL Binary from ${url}`);

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ async function setup() {
1313
console.log("version:::: " +version)
1414
console.log("URL:::: " +url)
1515
// If a URL not set, generate the URL based on the version
16-
if(url == null || url.trim() != '') {
16+
if(url == null || url.trim() == '') {
1717
url = getDownloadURL(version)
1818
}
1919
console.log(`Downloading the APICTL Binary from ${url}`);

0 commit comments

Comments
 (0)