Removed duplicate array length check

This commit is contained in:
Chris Daley
2024-10-06 18:00:46 -07:00
committed by fiatjaf_
parent f0f4eb5276
commit 9069fb6743

View File

@ -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"`
}