From 28fd867c9bc790636d37a28f288791cd0089a6fd Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Fri, 4 Jan 2013 22:41:36 -0200 Subject: Remove unnecessary begin..rescue..end, use only rescue --- railties/lib/rails/commands/console.rb | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/commands/console.rb b/railties/lib/rails/commands/console.rb index 11275d7ea9..78580b220c 100644 --- a/railties/lib/rails/commands/console.rb +++ b/railties/lib/rails/commands/console.rb @@ -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 -- cgit v1.2.3