Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/issue_8161' into issue_8161
Browse files Browse the repository at this point in the history
  • Loading branch information
royalhuang committed Oct 16, 2023
2 parents f8020c4 + 95574a8 commit 30aa229
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -230,13 +230,13 @@ class ModelTransfer @Autowired constructor(

private fun makeNoticesV3(setting: PipelineSetting): List<PacNotices> {
val res = mutableListOf<PacNotices>()
setting.successSubscriptionList?.plus(setting.successSubscription)?.forEach {
setting.successSubscriptionList?.ifEmpty { listOf(setting.successSubscription) }?.forEach {
if (it.types.isNotEmpty()) {
val notice = PacNotices(it, IfType.SUCCESS.name)
res.add(prepareYamlGroups(setting.projectId, notice))
}
}
setting.failSubscriptionList?.plus(setting.failSubscription)?.forEach {
setting.failSubscriptionList?.ifEmpty { listOf(setting.failSubscription) }?.forEach {
if (it.types.isNotEmpty()) {
val notice = PacNotices(it, IfType.FAILURE.name)
res.add(prepareYamlGroups(setting.projectId, notice))
Expand Down

0 comments on commit 30aa229

Please sign in to comment.