mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-02 04:50:49 +00:00
Enable gosimple and ineffasign linters
This commit is contained in:
+1
-3
@@ -175,9 +175,7 @@ func GetContentsFromDeb(file aptly.ReadSeekerCloser, packageFile string) ([]stri
|
||||
continue
|
||||
}
|
||||
|
||||
if strings.HasPrefix(tarHeader.Name, "./") {
|
||||
tarHeader.Name = tarHeader.Name[2:]
|
||||
}
|
||||
tarHeader.Name = strings.TrimPrefix(tarHeader.Name[2:], "./")
|
||||
results = append(results, tarHeader.Name)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user