fix linting issues

This commit is contained in:
Simon Aronsson 2020-12-21 18:11:08 +01:00
parent eb8580f7f2
commit cf6a71de81
No known key found for this signature in database
GPG key ID: 8DA57A5FD341605B

View file

@ -150,6 +150,7 @@ func GetAuthURL(challenge string, img string) (*url.URL, error) {
return authURL, nil
}
// GetScopeFromImageName normalizes an image name for use as scope during auth and head requests
func GetScopeFromImageName(img, svc string) string {
parts := strings.Split(img, "/")
scopeImage := ""