Browse Source

registry: format code with gofumpt

Formatting the code with https://github.com/mvdan/gofumpt

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Sebastiaan van Stijn 3 years ago
parent
commit
784ba59a08
1 changed files with 1 additions and 1 deletions
  1. 1 1
      registry/service.go

+ 1 - 1
registry/service.go

@@ -54,7 +54,7 @@ func (s *Service) ReplaceConfig(options ServiceOptions) (commit func(), err erro
 // It can be used to verify the validity of a client's credentials.
 // It can be used to verify the validity of a client's credentials.
 func (s *Service) Auth(ctx context.Context, authConfig *registry.AuthConfig, userAgent string) (status, token string, err error) {
 func (s *Service) Auth(ctx context.Context, authConfig *registry.AuthConfig, userAgent string) (status, token string, err error) {
 	// TODO Use ctx when searching for repositories
 	// TODO Use ctx when searching for repositories
-	var registryHostName = IndexHostname
+	registryHostName := IndexHostname
 
 
 	if authConfig.ServerAddress != "" {
 	if authConfig.ServerAddress != "" {
 		serverAddress := authConfig.ServerAddress
 		serverAddress := authConfig.ServerAddress