Skip to content

Commit 80303a7

Browse files
committed
Update dist
1 parent 4c01f83 commit 80303a7

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

dist/index.js

Lines changed: 6 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils.ts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ import * as core from '@actions/core'
22

33
export function get_databricks_host(): string {
44
const databricks_host_input: string = core.getInput('databricks-host')
5-
const databricks_host_env: string = process.env['DATABRICKS_HOST'] || ''
5+
const databricks_host_env: string = process.env['DATABRICKS_HOST'] ?? ''
66

77
if (!databricks_host_input && !databricks_host_env) {
88
throw new Error(
99
'databricks-host or DATABRICKS_HOST environment variable must be set.'
1010
)
1111
} else {
12-
return databricks_host_input
13-
? databricks_host_input
14-
: databricks_host_env
12+
return databricks_host_input || databricks_host_env
1513
}
1614
}
1715

@@ -23,9 +21,7 @@ export function get_databricks_repo_id(): string {
2321
'databricks-repo-id or DATABRICKS_REPO_ID environment variable must be set.'
2422
)
2523
} else {
26-
return databricks_repo_input
27-
? databricks_repo_input
28-
: databricks_repo_env
24+
return databricks_repo_input || databricks_repo_env
2925
}
3026
}
3127

0 commit comments

Comments
 (0)