Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 0762e3c

Browse files
Sort all the things
1 parent 63d7d8f commit 0762e3c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

Sources/Bugsnag/Bugsnag.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ struct BugsnagEvent: Encodable {
3333
breadcrumbs: [BugsnagBreadcrumb],
3434
error: Error,
3535
httpRequest: HTTPRequest? = nil,
36+
keyFilters: [String],
3637
metadata: [String: CustomDebugStringConvertible],
3738
payloadVersion: String,
3839
severity: Severity,
3940
stacktrace: BugsnagStacktrace,
40-
userId: CustomStringConvertible?,
41-
keyFilters: [String]
41+
userId: CustomStringConvertible?
4242
) {
4343
self.app = app
4444
self.breadcrumbs = breadcrumbs
@@ -98,9 +98,7 @@ struct BugsnagRequest: Encodable {
9898
static private func filter(_ body: HTTPBody, using filters: [String]) -> String? {
9999
guard
100100
let data = body.data,
101-
let unwrap = try? JSONSerialization.jsonObject(
102-
with: data, options: []
103-
) as? [String: Any],
101+
let unwrap = try? JSONSerialization.jsonObject(with: data) as? [String: Any],
104102
let jsonObject = unwrap
105103
else {
106104
return body.data.flatMap { String(data: $0, encoding: .utf8) }

0 commit comments

Comments
 (0)