Skip to content

Commit

Permalink
Remove duplicated condition
Browse files Browse the repository at this point in the history
  • Loading branch information
cutalion committed Dec 23, 2023
1 parent b1b28d1 commit 1d28444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/cache/meta_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def lookup(request, entity_store)

# find a cached entry that matches the request.
env = request.env
match = entries.detect{ |req,res| requests_match?((res['vary'] || res['vary']), env, req) }
match = entries.detect{ |req,res| requests_match?(res['vary'], env, req) }
return nil if match.nil?

_, res = match
Expand Down

0 comments on commit 1d28444

Please sign in to comment.