Skip to content

Commit

Permalink
replace string literal with constant
Browse files Browse the repository at this point in the history
  • Loading branch information
yw-liu committed Apr 17, 2020
1 parent 2e90173 commit 73eb47c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/buildcontext/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 73eb47c

Please sign in to comment.