Skip to content

Commit df333bd

Browse files
authored
Remove public modifiers from an internal extension (#56)
### Motivation The `public` modifier of members in an extension of an internal type doesn't actually make them public, and can be confusing when reading the code. ### Modifications Remove the public modifiers. ### Result Less confusing code. ### Test Plan Tests still pass.
1 parent 929d001 commit df333bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/OpenAPIURLSession/URLSessionTransport.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,12 @@ extension HTTPField {
249249

250250
extension URLSessionTransportError: LocalizedError {
251251
/// A localized message describing what error occurred.
252-
public var errorDescription: String? { description }
252+
var errorDescription: String? { description }
253253
}
254254

255255
extension URLSessionTransportError: CustomStringConvertible {
256256
/// A textual representation of this instance.
257-
public var description: String {
257+
var description: String {
258258
switch self {
259259
case let .invalidRequestURL(path: path, method: method, baseURL: baseURL):
260260
return

0 commit comments

Comments
 (0)