mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-14 02:48:50 +00:00
format with prettier
This commit is contained in:
@@ -81,8 +81,7 @@ export function getFilterLimit(filter: Filter): number {
|
||||
return Math.min(
|
||||
Math.max(0, filter.limit ?? Infinity),
|
||||
filter.ids?.length ?? Infinity,
|
||||
filter.authors?.length &&
|
||||
filter.kinds?.every((kind) => isReplaceableKind(kind))
|
||||
filter.authors?.length && filter.kinds?.every(kind => isReplaceableKind(kind))
|
||||
? filter.authors.length * filter.kinds.length
|
||||
: Infinity,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user