mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 20:39:24 +00:00
Refactor reportUrl to reportURL.
This commit is contained in:
@@ -137,7 +137,6 @@ class BugReportService: NSObject, BugReportServiceProtocol {
|
||||
|
||||
// Parse the JSON data
|
||||
let decoder = JSONDecoder()
|
||||
decoder.keyDecodingStrategy = .convertFromSnakeCase
|
||||
let uploadResponse = try decoder.decode(SubmitBugReportResponse.self, from: data)
|
||||
|
||||
lastCrashEventID = nil
|
||||
|
||||
@@ -22,7 +22,11 @@ struct BugReport: Equatable {
|
||||
}
|
||||
|
||||
struct SubmitBugReportResponse: Decodable {
|
||||
var reportUrl: String?
|
||||
var reportURL: String?
|
||||
|
||||
enum CodingKeys: String, CodingKey {
|
||||
case reportURL = "report_url"
|
||||
}
|
||||
}
|
||||
|
||||
enum BugReportServiceError: LocalizedError {
|
||||
|
||||
Reference in New Issue
Block a user