Skip to content

Commit

Permalink
refactoring variable
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermesilveira committed Oct 29, 2010
1 parent 5a7f11e commit 587c510
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/restfulie/client/cache/basic.rb
Expand Up @@ -52,8 +52,9 @@ def cache_get(key, req)
found = cache.read(key).find do |cached|
old_req = cached.first
old_response = cached.last
if old_response.vary_headers_for(old_req) == old_response.vary_headers_for(req) &&
old_response.method == req.verb

headers_match = old_response.vary_headers_for(old_req) == old_response.vary_headers_for(req)
if headers_match && old_response.verb == req.verb
old_response
else
false
Expand Down

0 comments on commit 587c510

Please sign in to comment.