File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
ApplicationLibrary/Views/Dashboard Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public struct DashboardView: View {
165165 return
166166 }
167167 await MainActor . run {
168- alert = Alert ( title: Text ( " Service Error " ) , message: Text ( message) )
168+ alert = Alert ( title: Text ( " Service Error " ) , message: Text ( message! . value ) )
169169 }
170170 }
171171
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public extension Profile {
2424 try write ( remoteContent)
2525 try await onProfileUpdated ( )
2626 }
27-
27+
2828 nonisolated func onProfileUpdated( ) async throws {
2929 if await SharedPreferences . selectedProfileID. get ( ) == id {
3030 if let profile = try ? await ExtensionProfile . load ( ) {
@@ -34,5 +34,4 @@ public extension Profile {
3434 }
3535 }
3636 }
37-
3837}
Original file line number Diff line number Diff line change @@ -26,12 +26,8 @@ public class HTTPClient {
2626 request. setUserAgent ( HTTPClient . userAgent)
2727 try request. setURL ( url)
2828 let response = try request. execute ( )
29- var error : NSError ?
30- let contentString = response. getContentString ( & error)
31- if let error {
32- throw error
33- }
34- return contentString
29+ let content = try response. getContent ( )
30+ return content. value
3531 }
3632
3733 deinit {
You can’t perform that action at this time.
0 commit comments