     }
     content.components(separatedBy: ", ").forEach { s in
       let linkComponents = s.components(separatedBy: ";")
-        .map {
-          ($0 as String).trimmingCharacters(in: CharacterSet.whitespaces)
-      }
+        .map { $0.trimmingCharacters(in: CharacterSet.whitespaces) }
       // although a link without a rel is valid, there's no way to reference it.
       if linkComponents.count > 1 {
         let url = linkComponents.first!

        for (k, v) in finalHeaders {
          request.addValue(v, forHTTPHeaderField: k)
        }
        return request as URLRequest
      }

    }

    let foundCookies: [HTTPCookie]
    if let headers = self.response?.HTTPHeaders, let url = self.response?.url {
      foundCookies = HTTPCookie.cookies(withResponseHeaderFields: headers,
                                        for: url)
    } else {
      foundCookies = []
    }
