registry: staticcheck

This commit is contained in:
James Bardin 2020-12-01 16:04:50 -05:00
parent e347b012df
commit 3deeb94aac
2 changed files with 0 additions and 8 deletions

View File

@ -65,10 +65,6 @@ type Client struct {
// services is a required *disco.Disco, which may have services and // services is a required *disco.Disco, which may have services and
// credentials pre-loaded. // credentials pre-loaded.
services *disco.Disco services *disco.Disco
// retry is the number of retries the client will attempt for each request
// if it runs into a transient failure with the remote registry.
retry int
} }
// NewClient returns a new initialized registry client. // NewClient returns a new initialized registry client.

View File

@ -5,10 +5,6 @@ import (
"testing" "testing"
) )
func intPtr(i int) *int {
return &i
}
func prettyJSON(o interface{}) (string, error) { func prettyJSON(o interface{}) (string, error) {
bytes, err := json.MarshalIndent(o, "", "\t") bytes, err := json.MarshalIndent(o, "", "\t")
if err != nil { if err != nil {