mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-09 06:04:12 +00:00
Enable gosimple and ineffasign linters
This commit is contained in:
+1
-3
@@ -331,9 +331,7 @@ ok:
|
||||
if strings.Contains(repo.Distribution, "/") {
|
||||
distributionLast := path.Base(repo.Distribution) + "/"
|
||||
for i := range components {
|
||||
if strings.HasPrefix(components[i], distributionLast) {
|
||||
components[i] = components[i][len(distributionLast):]
|
||||
}
|
||||
components[i] = strings.TrimPrefix(components[i], distributionLast)
|
||||
}
|
||||
}
|
||||
if len(repo.Components) == 0 {
|
||||
|
||||
Reference in New Issue
Block a user