mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 18:41:07 +08:00
Not initializing variable for looping if unused in loop
This commit is contained in:
@ -84,7 +84,7 @@ module Middleware
|
||||
status,headers,response = result
|
||||
|
||||
if status == 200 && cache_duration
|
||||
headers_stripped = headers.dup.delete_if{|k,v| ["Set-Cookie","X-MiniProfiler-Ids"].include? k}
|
||||
headers_stripped = headers.dup.delete_if{|k, _| ["Set-Cookie","X-MiniProfiler-Ids"].include? k}
|
||||
parts = []
|
||||
response.each do |part|
|
||||
parts << part
|
||||
|
Reference in New Issue
Block a user