Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default [...compat.extends("eslint:recommended"), {
SharedArrayBuffer: "readonly",
},

ecmaVersion: 2018,
ecmaVersion: 2019,
sourceType: "commonjs",
},

Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async function downloadDoctlWithFallback(requestedVersion, type, architecture) {
try {
core.info(`Attempting to download doctl v${requestedVersion}`);
return await downloadDoctl(requestedVersion, type, architecture);
} catch (error) {
} catch {
core.warning(`Failed to download requested version v${requestedVersion}, will try recent versions`);
}
}
Expand All @@ -89,7 +89,7 @@ async function downloadDoctlWithFallback(requestedVersion, type, architecture) {
const installPath = await downloadDoctl(version, type, architecture);
core.info(`Successfully downloaded doctl v${version}`);
return { installPath, version };
} catch (error) {
} catch {
core.warning(`Failed to download doctl v${version}, trying next version`);
continue;
}
Expand Down Expand Up @@ -134,7 +134,7 @@ Failed to retrieve latest version; falling back to: ${fallbackVersion}`);
const installPath = await downloadDoctl(version, process.platform, process.arch);
path = await tc.cacheDir(installPath, 'doctl', version);
actualVersion = version;
} catch (error) {
} catch {
// If the download fails (e.g., missing artifacts), try fallback versions
core.warning(`Failed to download doctl v${version}, trying fallback versions`);
const result = await downloadDoctlWithFallback(requestedVersion, process.platform, process.arch);
Expand Down
Loading