Skip to content

Commit cad56e2

Browse files
committed
Add workaround for bulkBarrierPreWrite: unaligned arguments
1 parent fe7dd43 commit cad56e2

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

ApplicationLibrary/Views/Dashboard/DashboardView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

Library/Database/Profile+Update.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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
}

Library/Network/HTTPClient.swift

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)