registry: staticcheck
This commit is contained in:
parent
e347b012df
commit
3deeb94aac
|
@ -65,10 +65,6 @@ type Client struct {
|
|||
// services is a required *disco.Disco, which may have services and
|
||||
// credentials pre-loaded.
|
||||
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.
|
||||
|
|
|
@ -5,10 +5,6 @@ import (
|
|||
"testing"
|
||||
)
|
||||
|
||||
func intPtr(i int) *int {
|
||||
return &i
|
||||
}
|
||||
|
||||
func prettyJSON(o interface{}) (string, error) {
|
||||
bytes, err := json.MarshalIndent(o, "", "\t")
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue