Skip to content

Commit 6c3780f

Browse files
committed
Removes unused error case
Removes the `invalidURL` case from the `NetworkError` enum, as it's no longer used.
1 parent 85d64bd commit 6c3780f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Sources/Service/NetworkService.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,16 +137,13 @@ private extension Network.Service {
137137
// MARK: - Public network error
138138
public extension Network.Service {
139139
enum NetworkError: LocalizedError {
140-
case invalidURL
141140
case badServerResponse(Int)
142141
case decodingError(Error)
143142
case encodingError(Error)
144143
case networkError(Error)
145144

146145
public var errorDescription: String? {
147146
switch self {
148-
case .invalidURL:
149-
"Invalid URL"
150147
case .badServerResponse(let code):
151148
"Server returned status code: \(code)"
152149
case .decodingError(let error):

0 commit comments

Comments
 (0)