Skip to content

Commit

Permalink
retry buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyouwen committed Mar 1, 2024
1 parent 4a06ff6 commit ea87598
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"reflect"

Check failure on line 7 in client/register.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

"reflect" imported and not used

Check failure on line 7 in client/register.go

View workflow job for this annotation

GitHub Actions / Build

"reflect" imported and not used
"strconv"
"time"
"github.com/pinterest/knox"
)

func init() {
Expand Down Expand Up @@ -58,7 +59,7 @@ func parseTimeout(val string) (time.Duration, error) {
}

func runRegister(cmd *Command, args []string) *ErrorStatus {
if reflect.TypeOf(cli).Name() == "UncachedHTTPClient" {
if _, ok := cli.(*knox.UncachedHTTPClient); ok {
fmt.Println("Cannot Register in No Cache mode")
return nil
}
Expand Down

0 comments on commit ea87598

Please sign in to comment.