mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove unnecessary begin..rescue..end, use only rescue
This commit is contained in:
parent
2269f43eb3
commit
28fd867c9b
1 changed files with 5 additions and 7 deletions
|
@ -89,13 +89,11 @@ module Rails
|
|||
end
|
||||
|
||||
def require_debugger
|
||||
begin
|
||||
require 'debugger'
|
||||
puts "=> Debugger enabled"
|
||||
rescue Exception
|
||||
puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
|
||||
exit
|
||||
end
|
||||
require 'debugger'
|
||||
puts "=> Debugger enabled"
|
||||
rescue Exception
|
||||
puts "You're missing the 'debugger' gem. Add it to your Gemfile, bundle, and try again."
|
||||
exit
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue