Explorar el Código

Fixed guard else condition formatting…no functional changes.

Christian Noon hace 8 años
padre
commit
00ad5eed1f
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      Source/MultipartFormData.swift

+ 1 - 2
Source/MultipartFormData.swift

@@ -257,8 +257,7 @@ open class MultipartFormData {
         var isDirectory: ObjCBool = false
         let path = fileURL.path
 
-        guard FileManager.default.fileExists(atPath: path, isDirectory: &isDirectory) && !isDirectory.boolValue else
-        {
+        guard FileManager.default.fileExists(atPath: path, isDirectory: &isDirectory) && !isDirectory.boolValue else {
             setBodyPartError(withReason: .bodyPartFileIsDirectory(at: fileURL))
             return
         }