Merge pull request #2840 from manishtomar/fix-lint
Fix gometalint errors
This commit is contained in:
commit
0d3efadf01
48 changed files with 99 additions and 249 deletions
|
@ -205,7 +205,7 @@ func Parse(s string) (Reference, error) {
|
|||
var repo repository
|
||||
|
||||
nameMatch := anchoredNameRegexp.FindStringSubmatch(matches[1])
|
||||
if nameMatch != nil && len(nameMatch) == 3 {
|
||||
if len(nameMatch) == 3 {
|
||||
repo.domain = nameMatch[1]
|
||||
repo.path = nameMatch[2]
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue