Skip to content

Commit

Permalink
Remove print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
brian-nguyen committed Jun 7, 2018
1 parent b046e4e commit 6f54b77
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions common/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
1 change: 0 additions & 1 deletion common/git_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 6f54b77

Please sign in to comment.