mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-10-23 11:18:28 +00:00
Enable gosimple and ineffasign linters
This commit is contained in:
1 parent
7a7b981d4f
commit
bae3f949b4
16 files changed
+32
-49
No files matched your search
+1
-1
@@ -344,7 +344,7 @@ func (p *Package) GetDependencies(options int) (dependencies []string) {
|
||||
if source == "" {
|
||||
source = p.Name
|
||||
}
|
||||
if strings.Index(source, ")") != -1 {
|
||||
if strings.Contains(source, ")") {
|
||||
dependencies = append(dependencies, fmt.Sprintf("%s {source}", source))
|
||||
} else {
|
||||
dependencies = append(dependencies, fmt.Sprintf("%s (= %s) {source}", source, p.Version))
|
||||
|
||||
Reference in new issue
Block a user