mirror of
https://github.com/anchore/syft.git
synced 2026-11-05 00:46:38 +01:00
chore(deps): update tools to latest versions (#3144)
This commit is contained in:
@@ -169,7 +169,6 @@ func getAdditionalFileListing(resolver file.Resolver, dbLocation file.Location,
|
||||
return files, locations
|
||||
}
|
||||
|
||||
//nolint:dupl
|
||||
func fetchMd5Contents(resolver file.Resolver, dbLocation file.Location, m pkg.DpkgDBEntry) (io.ReadCloser, *file.Location) {
|
||||
var md5Reader io.ReadCloser
|
||||
var err error
|
||||
@@ -213,7 +212,6 @@ func fetchMd5Contents(resolver file.Resolver, dbLocation file.Location, m pkg.Dp
|
||||
return md5Reader, &l
|
||||
}
|
||||
|
||||
//nolint:dupl
|
||||
func fetchConffileContents(resolver file.Resolver, dbLocation file.Location, m pkg.DpkgDBEntry) (io.ReadCloser, *file.Location) {
|
||||
var reader io.ReadCloser
|
||||
var err error
|
||||
|
||||
@@ -230,7 +230,7 @@ func handleNewKeyValue(line string) (key string, val interface{}, err error) {
|
||||
if err != nil {
|
||||
return "", nil, fmt.Errorf("bad installed-size value=%q: %w", val, err)
|
||||
}
|
||||
return key, int(s), nil
|
||||
return key, int(s), nil //nolint:gosec
|
||||
default:
|
||||
return key, val, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user