mirror of
https://github.com/samsonjs/rack-attack.git
synced 2026-03-25 09:25:49 +00:00
style: enabled Style/RedundantBegin rubocop
This commit is contained in:
parent
7dbb490c01
commit
8e3077c845
2 changed files with 6 additions and 5 deletions
|
|
@ -50,5 +50,8 @@ Style/FrozenStringLiteralComment:
|
|||
Style/HashSyntax:
|
||||
Enabled: true
|
||||
|
||||
Style/RedundantBegin:
|
||||
Enabled: true
|
||||
|
||||
Style/RedundantFreeze:
|
||||
Enabled: true
|
||||
|
|
|
|||
|
|
@ -15,11 +15,9 @@ if RUBY_ENGINE == "ruby"
|
|||
end
|
||||
|
||||
def safe_require(name)
|
||||
begin
|
||||
require name
|
||||
rescue LoadError
|
||||
nil
|
||||
end
|
||||
require name
|
||||
rescue LoadError
|
||||
nil
|
||||
end
|
||||
|
||||
safe_require "connection_pool"
|
||||
|
|
|
|||
Loading…
Reference in a new issue