diff --git a/Sources/Osiris/FormEncoder.swift b/Sources/Osiris/FormEncoder.swift index 5b5eed6..ef68741 100644 --- a/Sources/Osiris/FormEncoder.swift +++ b/Sources/Osiris/FormEncoder.swift @@ -121,6 +121,6 @@ public final class FormEncoder: CustomStringConvertible { } public var description: String { - return "FormEncoder" + "FormEncoder" } } diff --git a/Sources/Osiris/HTTPMethod.swift b/Sources/Osiris/HTTPMethod.swift index 95b8f30..4ace74e 100644 --- a/Sources/Osiris/HTTPMethod.swift +++ b/Sources/Osiris/HTTPMethod.swift @@ -16,10 +16,10 @@ public enum HTTPMethod: String, Sendable, CustomStringConvertible { /// The uppercased string representation of the HTTP method. var string: String { - return rawValue.uppercased() + rawValue.uppercased() } public var description: String { - return string + string } } diff --git a/Sources/Osiris/HTTPRequest.swift b/Sources/Osiris/HTTPRequest.swift index e85fbb6..020f427 100644 --- a/Sources/Osiris/HTTPRequest.swift +++ b/Sources/Osiris/HTTPRequest.swift @@ -141,6 +141,6 @@ public struct HTTPRequest: Sendable, CustomStringConvertible { } public var description: String { - return "" + "" } } diff --git a/Sources/Osiris/HTTPResponse.swift b/Sources/Osiris/HTTPResponse.swift index 5b2e82b..dbe5f0c 100644 --- a/Sources/Osiris/HTTPResponse.swift +++ b/Sources/Osiris/HTTPResponse.swift @@ -80,12 +80,12 @@ public enum HTTPResponse: CustomStringConvertible { /// The HTTP status code returned by the server, or 0 if the request failed completely. public var status: Int { - return underlyingResponse?.statusCode ?? 0 + underlyingResponse?.statusCode ?? 0 } /// All HTTP headers returned by the server. public var headers: [AnyHashable : Any] { - return underlyingResponse?.allHeaderFields ?? [:] + underlyingResponse?.allHeaderFields ?? [:] } /// The response body decoded as a UTF-8 string. diff --git a/Sources/Osiris/MultipartFormEncoder.swift b/Sources/Osiris/MultipartFormEncoder.swift index 1f35241..3f70c05 100644 --- a/Sources/Osiris/MultipartFormEncoder.swift +++ b/Sources/Osiris/MultipartFormEncoder.swift @@ -40,7 +40,7 @@ extension MultipartFormEncoder { } public var description: String { - return "" + "" } } @@ -57,7 +57,7 @@ extension MultipartFormEncoder { public let contentLength: Int64 public var description: String { - return "" + "" } } @@ -132,7 +132,7 @@ extension MultipartFormEncoder { } public var description: String { - return "" + "" } } } @@ -361,6 +361,6 @@ public final class MultipartFormEncoder: CustomStringConvertible { } public var description: String { - return "" + "" } }