Skip to content

Commit

Permalink
Prefer to use a keyword argument.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jul 25, 2023
1 parent 946def2 commit 1dbeca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/attack/cache.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.default_store
end
end

def initialize(store = self.class.default_store)
def initialize(store: self.class.default_store)
self.store = store
@prefix = 'rack::attack'
end
Expand Down

0 comments on commit 1dbeca8

Please sign in to comment.