replace string literal with constant

This commit is contained in:
yw-liu 2020-04-17 09:07:38 +08:00
parent 2e90173238
commit 73eb47c752
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ func (g *Git) UnpackTarFromBuildContext() (string, error) {
func getGitPullMethod() string { func getGitPullMethod() string {
gitPullMethod := os.Getenv(gitPullMethodEnvKey) gitPullMethod := os.Getenv(gitPullMethodEnvKey)
if ok := supportedGitPullMethods[gitPullMethod]; !ok { if ok := supportedGitPullMethods[gitPullMethod]; !ok {
gitPullMethod = "https" gitPullMethod = gitPullMethodHTTPS
} }
return gitPullMethod return gitPullMethod
} }