瀏覽代碼

Removed unnecessary `String.Encoding` type specifier…no functional changes.

Christian Noon 9 年之前
父節點
當前提交
8bdaed3488
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      Source/Request.swift

+ 1 - 4
Source/Request.swift

@@ -327,10 +327,7 @@ extension Request: CustomDebugStringConvertible {
             components.append("-H \"\(field): \(value)\"")
         }
 
-        if
-            let httpBodyData = request.httpBody,
-            let httpBody = String(data: httpBodyData, encoding: String.Encoding.utf8)
-        {
+        if let httpBodyData = request.httpBody, let httpBody = String(data: httpBodyData, encoding: .utf8) {
             var escapedBody = httpBody.replacingOccurrences(of: "\\\"", with: "\\\\\"")
             escapedBody = escapedBody.replacingOccurrences(of: "\"", with: "\\\"")