Skip to content

Commit

Permalink
Don't use rescue when there is a cleaner way
Browse files Browse the repository at this point in the history
  • Loading branch information
bmizerany committed Nov 13, 2008
1 parent 33cbef5 commit c08fbaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sinatra.rb
Expand Up @@ -928,7 +928,7 @@ def self.default_options
:run => true,
:port => 4567,
:host => '0.0.0.0',
:env => (ENV['RACK_ENV'].to_sym rescue :development),
:env => (ENV['RACK_ENV'] || :development).to_sym,
:root => root,
:views => root + '/views',
:public => root + '/public',
Expand Down

0 comments on commit c08fbaf

Please sign in to comment.