Skip to content

Commit

Permalink
#12 check
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 5, 2024
1 parent 3968ca8 commit 241cee6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/fbe/iterate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ def quota_aware

def repeats(repeats)
raise 'Cannot set "repeats" to nil' if repeats.nil?
raise 'The "repeats" must be a positive integer' unless repeats.positive?
raise 'Cannot set "repeats" to larger than 8' if repeats > 8
@repeats = repeats
end

Expand Down

0 comments on commit 241cee6

Please sign in to comment.