diff --git a/common/git.go b/common/git.go index a178fe8d..97098c2c 100644 --- a/common/git.go +++ b/common/git.go @@ -48,10 +48,7 @@ func CheckForGit(cwd string) error { // GetSSHRemoteURL gets the URL of the given remote in the form // "git@github.com:[USER]/[REPOSITORY].git" func GetSSHRemoteURL(url string) string { - re, err := regexp.Compile("(https://)|(git://)") - if err != nil { - println(err) - } + re, _ := regexp.Compile("(https://)|(git://)") sshURL := re.ReplaceAllString(url, "git@") if sshURL != url { diff --git a/common/git_test.go b/common/git_test.go index 6b0f41a7..1c109cf2 100644 --- a/common/git_test.go +++ b/common/git_test.go @@ -29,7 +29,6 @@ func TestCheckForGit(t *testing.T) { func TestGetSSHRemoteURL(t *testing.T) { validSSH := remoteURLVariations[0:3] - println(validSSH) for _, url := range remoteURLVariations { assert.Contains(t, validSSH, GetSSHRemoteURL(url)) }