From 9069fb67439a36f941185484f6e9fe6b7b6a6553 Mon Sep 17 00:00:00 2001 From: Chris Daley Date: Sun, 6 Oct 2024 18:00:46 -0700 Subject: [PATCH] Removed duplicate array length check --- envelopes.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/envelopes.go b/envelopes.go index 8b2d442..54f3f51 100644 --- a/envelopes.go +++ b/envelopes.go @@ -159,10 +159,6 @@ func (v *CountEnvelope) UnmarshalJSON(data []byte) error { } v.SubscriptionID = arr[1].Str - if len(arr) < 3 { - return fmt.Errorf("COUNT array must have at least 3 items") - } - var countResult struct { Count *int64 `json:"count"` }