Skip to content

Commit cca0a9d

Browse files
committed
remove empty string
1 parent cd95eec commit cca0a9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ci_providers/provider_cirrus.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function _getBuildURL(inputs) {
1414

1515
function _getBranch(inputs) {
1616
const { args, envs } = inputs
17-
return args.branch || envs.CIRRUS_BRANCH || ''
17+
return args.branch || envs.CIRRUS_BRANCH
1818
}
1919

2020
function _getJob(envs) {
@@ -23,7 +23,7 @@ function _getJob(envs) {
2323

2424
function _getPR(inputs) {
2525
const { args, envs } = inputs
26-
return args.pr || envs.CIRRUS_PR || ''
26+
return args.pr || envs.CIRRUS_PR
2727
}
2828

2929
function _getService() {
@@ -36,12 +36,12 @@ function getServiceName() {
3636

3737
function _getSHA(inputs) {
3838
const { args, envs } = inputs
39-
return args.sha || envs.CIRRUS_CHANGE_IN_REPO || ''
39+
return args.sha || envs.CIRRUS_CHANGE_IN_REPO
4040
}
4141

4242
function _getSlug(inputs) {
4343
const { args, envs } = inputs
44-
return args.slug || envs.CIRRUS_REPO_FULL_NAME || ''
44+
return args.slug || envs.CIRRUS_REPO_FULL_NAME
4545
}
4646

4747
function getServiceParams(inputs) {

0 commit comments

Comments
 (0)