Fixes issue #132, if image does not have any fixed tags, empty list with no error should be returned

This commit is contained in:
Shivam Mishra
2020-09-04 15:02:10 -07:00
parent aa6683854f
commit cd0206fe6c
5 changed files with 44 additions and 11 deletions
+1 -3
View File
@@ -297,7 +297,5 @@ func (r *queryResolver) ImageListWithCVEFixed(ctx context.Context, id string, im
r.cveInfo.Log.Info().Msg("Input image does not contain any tag that does not have given cve")
imgResultForFixedCVE = &ImgResultForFixedCve{}
return imgResultForFixedCVE, errors.ErrFixedTagNotFound
return imgResultForFixedCVE, nil
}