From d9d5788ec4876ca1c673fbf4b9dfbde7bc4ecb94 Mon Sep 17 00:00:00 2001 From: Islam Aleiv Date: Thu, 21 Nov 2024 11:17:25 +0100 Subject: [PATCH] Fix lint --- client/json.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/json.go b/client/json.go index b9125229c8..c5b0534774 100644 --- a/client/json.go +++ b/client/json.go @@ -363,9 +363,9 @@ func NewJSON(v any) (JSON, error) { return nil, NewErrInvalidJSONPayload(v) } -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)