forked from toolshed/abra
style: rm unneeded type assertions
This commit is contained in:
@ -268,7 +268,7 @@ func UpdateAppComposeTag(recipe, image, tag string) error {
|
||||
logrus.Fatal(err)
|
||||
}
|
||||
|
||||
composeImage := reference.Path(img.(reference.Named))
|
||||
composeImage := reference.Path(img)
|
||||
if strings.Contains(composeImage, "library") {
|
||||
// ParseNormalizedNamed prepends 'library' to images like nginx:<tag>,
|
||||
// postgres:<tag>, i.e. images which do not have a username in the
|
||||
|
Reference in New Issue
Block a user