Skip to content

Commit

Permalink
Fix ameba issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Sija committed Aug 24, 2023
1 parent ecb38bc commit b422892
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/retriable.cr
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module Retriable

class_getter settings : Settings { Settings.new }

def configure : Nil
def configure(&) : Nil
yield settings
end

Expand All @@ -32,7 +32,7 @@ module Retriable
end

# ameba:disable Metrics/CyclomaticComplexity
def retry(on = nil, **opts)
def retry(on = nil, **opts, &)
base_interval = opts[:base_interval]? || settings.base_interval
max_interval = opts[:max_interval]? || settings.max_interval
rand_factor = opts[:rand_factor]? || settings.rand_factor
Expand Down

0 comments on commit b422892

Please sign in to comment.