Skip to content

Commit

Permalink
Remove redundant block around single call.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Holland authored and Rob Holland committed Nov 27, 2009
1 parent df188f9 commit 1a6c2c7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/capybara/dsl.rb
Expand Up @@ -22,9 +22,7 @@ def use_default_driver
end

def current_session
session_pool["#{current_driver}#{app.object_id}"] ||= begin
Capybara::Session.new(current_driver, app)
end
session_pool["#{current_driver}#{app.object_id}"] ||= Capybara::Session.new(current_driver, app)
end

def current_session?
Expand Down

0 comments on commit 1a6c2c7

Please sign in to comment.