Style fixups

This commit is contained in:
Andrey Smirnov
2017-07-05 00:36:48 +03:00
parent 211ac0501f
commit c13eb99925
3 changed files with 5 additions and 11 deletions
-2
View File
@@ -395,6 +395,4 @@ func (l *PackageRefList) FilterLatestRefs() {
lastArch, lastName, lastVer = arch, name, ver
}
return
}
+1 -1
View File
@@ -198,7 +198,7 @@ func (repo *RemoteRepo) IndexesRootURL() *url.URL {
if !repo.IsFlat() {
path = &url.URL{Path: fmt.Sprintf("dists/%s/", repo.Distribution)}
} else {
path = &url.URL{Path: fmt.Sprintf("%s", repo.Distribution)}
path = &url.URL{Path: repo.Distribution}
}
return repo.archiveRootURL.ResolveReference(path)