cleanup
This commit is contained in:
parent
3eab18bc8d
commit
97001f4e27
|
@ -78,14 +78,13 @@ final class ConnectToServerViewModel: ViewModel {
|
||||||
} else {
|
} else {
|
||||||
self
|
self
|
||||||
.connectToServer(uri: newURL.absoluteString
|
.connectToServer(uri: newURL.absoluteString
|
||||||
.removeRegexMatches(pattern: "/web/index.html", replaceWith: ""),
|
.removeRegexMatches(pattern: "/web/index.html"),
|
||||||
redirectCount: redirectCount + 1)
|
redirectCount: redirectCount + 1)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
self.handleAPIRequestError(completion: completion)
|
self.handleAPIRequestError(completion: completion)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
print(errorResponse)
|
|
||||||
case is SwiftfinStore.Errors:
|
case is SwiftfinStore.Errors:
|
||||||
let swiftfinError = error as! SwiftfinStore.Errors
|
let swiftfinError = error as! SwiftfinStore.Errors
|
||||||
switch swiftfinError {
|
switch swiftfinError {
|
||||||
|
|
Loading…
Reference in New Issue