Browse Source

warning: extraneous '_' in parameter: 'headerName' has no keyword argument name.

kolakowski 10 năm trước cách đây
mục cha
commit
a9e14abcec
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Sources/HttpRequest.swift

+ 1 - 1
Sources/HttpRequest.swift

@@ -21,7 +21,7 @@ public class HttpRequest {
     public var address: String? = ""
     public var params: [String: String] = [:]
     
-    public func hasTokenForHeader(_ headerName: String, token: String) -> Bool {
+    public func hasTokenForHeader(headerName: String, token: String) -> Bool {
         guard let headerValue = headers[headerName] else {
             return false
         }