Skip to content

Commit

Permalink
Merge pull request #69 from czechboy0/hd/backwards_compatible_parsing…
Browse files Browse the repository at this point in the history
…_build_summary

Backwards compatible parsing of BuildResultSummary
  • Loading branch information
Honza Dvorsky committed Jul 15, 2015
2 parents d9e3188 + 1301fa5 commit 9d9b761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XcodeServerSDK/Server Entities/Integration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ public class BuildResultSummary : XcodeServerEntity {
self.errorChange = json.intForKey("errorChange")
self.improvedPerfTestCount = json.intForKey("improvedPerfTestCount")
self.analyzerWarningChange = json.intForKey("analyzerWarningChange")
self.codeCoveragePercentage = json.intForKey("codeCoveragePercentage")
self.codeCoveragePercentageDelta = json.intForKey("codeCoveragePercentageDelta")
self.codeCoveragePercentage = json.optionalIntForKey("codeCoveragePercentage") ?? 0
self.codeCoveragePercentageDelta = json.optionalIntForKey("codeCoveragePercentageDelta") ?? 0

super.init(json: json)
}
Expand Down

0 comments on commit 9d9b761

Please sign in to comment.