mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-01 01:35:49 +02:00
replace string literal with constant
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user