mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-04 21:49:27 +00:00
Fix TypeScript 6.0 compilation errors in src/run.ts
Co-authored-by: davidgamero <4248857+davidgamero@users.noreply.github.com> Agent-Logs-Url: https://github.com/Azure/setup-helm/sessions/ea7df0f9-0f19-4014-80e5-f5f762252c4a
This commit is contained in:
parent
a3d649f89f
commit
8df9cb7d12
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ export async function run() {
|
|||
core.endGroup()
|
||||
|
||||
try {
|
||||
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
|
||||
if (!process.env['PATH']?.startsWith(path.dirname(cachedPath))) {
|
||||
core.addPath(path.dirname(cachedPath))
|
||||
}
|
||||
} catch {
|
||||
|
|
@ -54,7 +54,7 @@ export async function getLatestHelmVersion(): Promise<string> {
|
|||
return release
|
||||
} catch (err) {
|
||||
core.warning(
|
||||
`Error while fetching latest Helm release: ${err.toString()}. Using default version ${stableHelmVersion}`
|
||||
`Error while fetching latest Helm release: ${err instanceof Error ? err.message : String(err)}. Using default version ${stableHelmVersion}`
|
||||
)
|
||||
return stableHelmVersion
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue