Skip to content

Commit

Permalink
Merge pull request #251 from rhatdan/codeverity
Browse files Browse the repository at this point in the history
Fix duplicated code found by codeverity.
  • Loading branch information
openshift-merge-robot authored Aug 13, 2020
2 parents d21626d + 7172579 commit 9ea2e7c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/auth/auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,6 @@ func getRegistryName(server string) string {
// gets the registry from the input. If the input is of the form
// quay.io/myuser/myimage, it will parse it and just return quay.io
split := strings.Split(server, "/")
if len(split) > 1 {
return split[0]
}
return split[0]
}

Expand Down

0 comments on commit 9ea2e7c

Please sign in to comment.