refactor(lint): fix lint warnings (#967)

This commit is contained in:
Kota Kanbe
2020-04-27 17:02:27 +09:00
committed by GitHub
parent 56b12c38d2
commit 37716feac7
3 changed files with 6 additions and 5 deletions

View File

@@ -1099,6 +1099,7 @@ type Image struct {
IgnoreCves []string `json:"ignoreCves,omitempty"`
}
// GetFullName returns a full name of the image
func (i *Image) GetFullName() string {
if i.Digest != "" {
return i.Name + "@" + i.Digest