Skip to content

Commit

Permalink
swift language error when running CD
Browse files Browse the repository at this point in the history
* CD encountered:
error: consecutive statements on a line must be separated by ';'

* pointing at `return if primaryAliasLabel == .external_id { externalId } else { onesignalId }`
  • Loading branch information
nan-li committed May 10, 2024
1 parent 5dd3a7e commit b785111
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,11 @@ class OSIdentityModel: OSModel {
*/
var primaryAliasLabel: OSDefaultAlias = .onesignal_id
var primaryAliasId: String? {
return if primaryAliasLabel == .external_id { externalId } else { onesignalId }
if primaryAliasLabel == .external_id {
return externalId
} else {
return onesignalId
}
}

var onesignalId: String? {
Expand Down

0 comments on commit b785111

Please sign in to comment.