mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01:00
fix linting issues
This commit is contained in:
parent
eb8580f7f2
commit
cf6a71de81
1 changed files with 2 additions and 1 deletions
|
|
@ -150,6 +150,7 @@ func GetAuthURL(challenge string, img string) (*url.URL, error) {
|
||||||
return authURL, nil
|
return authURL, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetScopeFromImageName normalizes an image name for use as scope during auth and head requests
|
||||||
func GetScopeFromImageName(img, svc string) string {
|
func GetScopeFromImageName(img, svc string) string {
|
||||||
parts := strings.Split(img, "/")
|
parts := strings.Split(img, "/")
|
||||||
scopeImage := ""
|
scopeImage := ""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue