ソースを参照

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: "\\\"")