Skip to content

Commit 2c1c267

Browse files
Use const for default cloud bulid region
Signed-off-by: KeisukeYamashita <[email protected]>
1 parent 74a9b51 commit 2c1c267

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ci.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ import (
88
"strings"
99
)
1010

11+
const (
12+
defaultCloudBuildRegion = "global"
13+
)
14+
1115
// CI represents a common information obtained from all CI platforms
1216
type CI struct {
1317
PR PullRequest
@@ -153,7 +157,7 @@ func cloudbuild() (ci CI, err error) {
153157

154158
region := os.Getenv("REGION")
155159
if region == "" {
156-
region = "global"
160+
region = defaultCloudBuildRegion
157161
}
158162

159163
ci.URL = fmt.Sprintf(

0 commit comments

Comments
 (0)