Skip to content

Commit

Permalink
Workaround for missing key trigger condition key
Browse files Browse the repository at this point in the history
`onInternalErrors` is missing in Xcode 8 Beta 6
  • Loading branch information
Seán Labastille authored Aug 17, 2016
1 parent 7c287b2 commit cf25227
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions XcodeServerSDK/Server Entities/TriggerConditions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ public class TriggerConditions : XcodeServerEntity {
self.onAnalyzerWarnings = try json.boolForKey("onAnalyzerWarnings")
self.onBuildErrors = try json.boolForKey("onBuildErrors")
self.onFailingTests = try json.boolForKey("onFailingTests")
self.onInternalErrors = try json.boolForKey("onInternalErrors")
self.onInternalErrors = try? json.boolForKey("onInternalErrors") ?? false
self.onSuccess = try json.boolForKey("onSuccess")
self.onWarnings = try json.boolForKey("onWarnings")

try super.init(json: json)
}
}
}

0 comments on commit cf25227

Please sign in to comment.