Skip to content

Commit

Permalink
fix: request marshal (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
byashimov authored Feb 9, 2024
1 parent 962e710 commit 21a0508
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ func (d *aivenClient) do(ctx context.Context, method, path string, v any) (*http

func isEmpty(a any) bool {
v := reflect.ValueOf(a)

return !v.IsZero() || v.Kind() == reflect.Ptr && v.IsNil()
return v.IsZero() || v.Kind() == reflect.Ptr && v.IsNil()
}

// Doer aka http.Client
Expand Down

0 comments on commit 21a0508

Please sign in to comment.