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 {
|
||||
gitPullMethod := os.Getenv(gitPullMethodEnvKey)
|
||||
if ok := supportedGitPullMethods[gitPullMethod]; !ok {
|
||||
gitPullMethod = "https"
|
||||
gitPullMethod = gitPullMethodHTTPS
|
||||
}
|
||||
return gitPullMethod
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue