mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-07-28 20:22:12 +02:00
Removed duplicate array length check
This commit is contained in:
@@ -159,10 +159,6 @@ func (v *CountEnvelope) UnmarshalJSON(data []byte) error {
|
|||||||
}
|
}
|
||||||
v.SubscriptionID = arr[1].Str
|
v.SubscriptionID = arr[1].Str
|
||||||
|
|
||||||
if len(arr) < 3 {
|
|
||||||
return fmt.Errorf("COUNT array must have at least 3 items")
|
|
||||||
}
|
|
||||||
|
|
||||||
var countResult struct {
|
var countResult struct {
|
||||||
Count *int64 `json:"count"`
|
Count *int64 `json:"count"`
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user