Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
islamaliev committed Nov 21, 2024
1 parent 0561b0d commit d9d5788
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/json.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ func NewJSON(v any) (JSON, error) {
return nil, NewErrInvalidJSONPayload(v)

Check warning on line 363 in client/json.go

View check run for this annotation

Codecov / codecov/patch

client/json.go#L363

Added line #L363 was not covered by tests
}

func newJSONBoolArray(v any) JSON {
func newJSONBoolArray(v []bool) JSON {
arr := make([]JSON, 0)
for _, item := range v.([]bool) {
for _, item := range v {
arr = append(arr, newJSONBool(item))
}
return newJSONArray(arr)
Expand Down

0 comments on commit d9d5788

Please sign in to comment.