Browse Source

Fixed typo in precondition in Request redirect API

Christian Noon 6 năm trước cách đây
mục cha
commit
ee559dcf8b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Source/Request.swift

+ 1 - 1
Source/Request.swift

@@ -506,7 +506,7 @@ open class Request {
     @discardableResult
     open func redirect(using handler: RedirectHandler) -> Self {
         protectedMutableState.write { mutableState in
-            precondition(mutableState.redirectHandler == nil, "Redirect handler has already set")
+            precondition(mutableState.redirectHandler == nil, "Redirect handler has already been set")
             mutableState.redirectHandler = handler
         }