Skip to content

Commit

Permalink
Get rid of unnecessary return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
sr committed May 2, 2009
1 parent 7ebd4c2 commit 49fe844
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/rack/mock_session.rb
Expand Up @@ -23,7 +23,7 @@ def request(uri, env)
@last_response = MockResponse.new(status, headers, body, env["rack.errors"].flush)
@cookie_jar = cookie_jar.merge(last_response.headers["Set-Cookie"], uri)

return @last_response
@last_response
end

# Return the last request issued in the session. Raises an error if no
Expand Down
4 changes: 2 additions & 2 deletions lib/rack/test.rb
Expand Up @@ -188,7 +188,7 @@ def process_request(uri, env)
else
yield last_response if block_given?

return last_response
last_response
end
end

Expand All @@ -206,7 +206,7 @@ def digest_auth_header

params["response"] = MockDigestRequest.new(params).response(@digest_password)

return "Digest #{params}"
"Digest #{params}"
end

def retry_with_digest_auth?(env)
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/test/cookie_jar.rb
Expand Up @@ -105,7 +105,7 @@ def merge(raw_cookies, uri = nil)

new_jar.concat cookies

return self.class.new(new_jar)
self.class.new(new_jar)
end

# :api: private
Expand Down

0 comments on commit 49fe844

Please sign in to comment.