Skip to content

Commit

Permalink
Merge pull request #140 from flufff42/patch-1
Browse files Browse the repository at this point in the history
Workaround for missing key trigger condition key
  • Loading branch information
czechboy0 authored Aug 17, 2016
2 parents 7c287b2 + cf25227 commit d5b2d8a
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 d5b2d8a

Please sign in to comment.