replace string literal with constant
This commit is contained in:
parent
2e90173238
commit
73eb47c752
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue