chore: fix govet issues
Signed-off-by: Yves Brissaud <yves.brissaud@docker.com>
This commit is contained in:
Родитель
6d45a08028
Коммит
519742ddac
|
@ -245,7 +245,6 @@ func ForBaseImageInGraphQL(cfg *v1.ConfigFile) (*types.BaseImagesByDiffIdsQuery,
|
|||
var q types.BaseImagesByDiffIdsQuery
|
||||
err := client.Query(context.Background(), &q, variables)
|
||||
if err != nil {
|
||||
fmt.Sprintf("error %v", err)
|
||||
return nil, errors.Wrapf(err, "failed to run query")
|
||||
}
|
||||
count := 0
|
||||
|
@ -280,7 +279,6 @@ func ForImageInGraphQL(sb *types.Sbom) (*types.ImageByDigestQuery, error) {
|
|||
var q types.ImageByDigestQuery
|
||||
err := client.Query(context.Background(), &q, variables)
|
||||
if err != nil {
|
||||
fmt.Sprintf("error %v", err)
|
||||
return nil, errors.Wrapf(err, "failed to run query")
|
||||
}
|
||||
if q.ImageDetailsByDigest.Digest != "" {
|
||||
|
|
|
@ -151,7 +151,6 @@ func ForVulnerabilitiesInGraphQL(sb *types.Sbom) (*types.VulnerabilitiesByPurls,
|
|||
var q types.VulnerabilitiesByPurls
|
||||
err := client.Query(context.Background(), &q, variables)
|
||||
if err != nil {
|
||||
fmt.Sprintf("error %v", err)
|
||||
return nil, errors.Wrapf(err, "failed to run query")
|
||||
}
|
||||
if len(q.VulnerabilitiesByPackage) > 0 {
|
||||
|
|
|
@ -150,5 +150,4 @@ func readStrings(reader io.ReadCloser, expr *regexp.Regexp) [][]string {
|
|||
str = append(str, r)
|
||||
}
|
||||
}
|
||||
return [][]string{}
|
||||
}
|
||||
|
|
|
@ -118,7 +118,7 @@ type ImageSource struct {
|
|||
Distro Distro `json:"distro"`
|
||||
Platform Platform `json:"platform"`
|
||||
Size int64 `json:"size"`
|
||||
Details *BaseImage `json:"details,omitempty""`
|
||||
Details *BaseImage `json:"details,omitempty"`
|
||||
}
|
||||
|
||||
type Descriptor struct {
|
||||
|
|
Загрузка…
Ссылка в новой задаче