mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-07-20 12:47:35 +00:00
Enable gosimple and ineffasign linters
This commit is contained in:
+1
-1
@@ -92,7 +92,7 @@ func (l *PackageRefList) Has(p *Package) bool {
|
||||
key := p.Key("")
|
||||
|
||||
i := sort.Search(len(l.Refs), func(j int) bool { return bytes.Compare(l.Refs[j], key) >= 0 })
|
||||
return i < len(l.Refs) && bytes.Compare(l.Refs[i], key) == 0
|
||||
return i < len(l.Refs) && bytes.Equal(l.Refs[i], key)
|
||||
}
|
||||
|
||||
// Strings builds list of strings with package keys
|
||||
|
||||
Reference in New Issue
Block a user