Use blank? instead of checking for nil

This commit is contained in:
Connor Mann 2021-05-14 11:53:49 -04:00 committed by GitHub
parent 2500b8daba
commit f7fe111430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ module Utils
end
def parse_headers(headers)
return {} unless headers
return {} if headers.blank?
# Skip status code
headers.split("\r\n")[1..].to_h do |h|