Signed-off-by: zhuxiaoyang <sunzhu@yunify.com>
This commit is contained in:
zhuxiaoyang
2019-11-21 19:25:32 +08:00
parent a7f67bd70c
commit 6db3a0ba3e
4 changed files with 4 additions and 4 deletions

View File

@@ -132,7 +132,7 @@ func newFromTransport(auth types.AuthConfig, opt RegistryOpt) (*Registry, error)
return registry, nil
}
// url returns a registry URL with the passed arguements concatenated.
// url returns a registry URL with the passed arguments concatenated.
func (r *Registry) url(pathTemplate string, args ...interface{}) string {
pathSuffix := fmt.Sprintf(pathTemplate, args...)
url := fmt.Sprintf("%s%s", r.URL, pathSuffix)