Skip to content

Commit c77900c

Browse files
committed
Fix legit hound complaints
Ignore all the ones that are style choices for our app.
1 parent 2482e41 commit c77900c

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Networking/Networking/Mapper/ReportOrderTotalsMapper.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ private struct ReportOrderTotalsEnvelope: Decodable {
3030
let data: [OrderStatus]
3131

3232
private enum CodingKeys: String, CodingKey {
33-
case data = "data"
33+
case data
3434
}
3535
}

Networking/Networking/Model/OrderStatus.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,9 @@ public struct OrderStatus: Decodable {
4444
private extension OrderStatus {
4545

4646
enum CodingKeys: String, CodingKey {
47-
case name = "name"
48-
case slug = "slug"
49-
case total = "total"
47+
case name
48+
case slug
49+
case total
5050
}
5151
}
5252

Networking/NetworkingTests/Mapper/ReportOrderMapperTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class ReportOrderMapperTests: XCTestCase {
2121
///
2222
func testSampleResponseLoaded() {
2323
guard let results = try? mapSuccessfulResponse() else {
24-
XCTFail()
24+
XCTFail("Sample order report totals didn't load.")
2525
return
2626
}
2727

0 commit comments

Comments
 (0)