mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00:00
remove prealloc nolint rule in catalogers
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
d420368ba9
commit
929b78efbf
3 changed files with 0 additions and 3 deletions
|
@ -73,7 +73,6 @@ func (pres *TablePresenter) Present(output io.Writer) error {
|
|||
|
||||
func removeDuplicateRows(items [][]string) [][]string {
|
||||
seen := map[string][]string{}
|
||||
// nolint:prealloc
|
||||
var result [][]string
|
||||
|
||||
for _, v := range items {
|
||||
|
|
|
@ -30,7 +30,6 @@ func (c *PackageCataloger) Name() string {
|
|||
|
||||
// Catalog is given an object to resolve file references and content, this function returns any discovered Packages after analyzing python egg and wheel installations.
|
||||
func (c *PackageCataloger) Catalog(resolver source.FileResolver) ([]pkg.Package, error) {
|
||||
// nolint:prealloc
|
||||
var fileMatches []source.Location
|
||||
|
||||
for _, glob := range []string{eggMetadataGlob, wheelMetadataGlob, eggFileMetadataGlob} {
|
||||
|
|
|
@ -53,7 +53,6 @@ var postProcessors = map[string]postProcessor{
|
|||
}
|
||||
|
||||
func processList(s string) []string {
|
||||
// nolint:prealloc
|
||||
var results []string
|
||||
for _, item := range strings.Split(s, ",") {
|
||||
results = append(results, strings.Trim(item, "\" "))
|
||||
|
|
Loading…
Reference in a new issue