Skip to content

Commit

Permalink
Removed duplicate array length check
Browse files Browse the repository at this point in the history
  • Loading branch information
chebizarro authored and fiatjaf committed Oct 7, 2024
1 parent f0f4eb5 commit 9069fb6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions envelopes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 9069fb6

Please sign in to comment.