Skip to content

Commit bc1310f

Browse files
committed
Simpler
1 parent d75ffe0 commit bc1310f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby_event_store/lib/ruby_event_store/specification.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def backward
188188
def limit(count)
189189
raise InvalidPageSize unless count && count > 0
190190

191-
Specification.new(reader, result.with(limit: count || Float::INFINITY))
191+
Specification.new(reader, result.with(limit: count))
192192
end
193193

194194
# Executes the query based on the specification built up to this point.

0 commit comments

Comments
 (0)