Skip to content

Commit

Permalink
Use default value for isPerformanceFailure
Browse files Browse the repository at this point in the history
Json contains data marked as “ActionTestFailureSummary” type but without `isPerformanceFailure` key.
  • Loading branch information
felginep committed Oct 4, 2019
1 parent 8f5b0da commit 809aec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/XCResultKit/ActionTestFailureSummary.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public struct ActionTestFailureSummary: XCResultObject {
message = xcOptional(element: "message", from: json)
fileName = try xcRequired(element: "fileName", from: json)
lineNumber = try xcRequired(element: "lineNumber", from: json)
isPerformanceFailure = try xcRequired(element: "isPerformanceFailure", from: json)
isPerformanceFailure = xcOptional(element: "isPerformanceFailure", from: json) ?? false
} catch {
debug("Error parsing ActionTestFailureSummary: \(error.localizedDescription)")
return nil
Expand Down

0 comments on commit 809aec1

Please sign in to comment.