Skip to content

Commit 6f04817

Browse files
committed
applying De Morgan's law to fix linter
1 parent 857fbd5 commit 6f04817

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sysdig/resource_sysdig_monitor_alert_v2_common.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,10 +392,10 @@ func updateAlertV2CommonState(d *schema.ResourceData, alert *v2.AlertV2Common) (
392392
_ = d.Set("notification_channels", notificationChannels)
393393

394394
if alert.CustomNotificationTemplate != nil &&
395-
!(alert.CustomNotificationTemplate.Subject == "" &&
396-
alert.CustomNotificationTemplate.AppendText == "" &&
397-
alert.CustomNotificationTemplate.PrependText == "" &&
398-
len(alert.CustomNotificationTemplate.AdditionalNotificationFields) == 0) {
395+
(alert.CustomNotificationTemplate.Subject != "" ||
396+
alert.CustomNotificationTemplate.AppendText != "" ||
397+
alert.CustomNotificationTemplate.PrependText != "" ||
398+
len(alert.CustomNotificationTemplate.AdditionalNotificationFields) != 0) {
399399
customNotification := map[string]interface{}{}
400400
customNotification["subject"] = alert.CustomNotificationTemplate.Subject
401401
customNotification["append"] = alert.CustomNotificationTemplate.AppendText

0 commit comments

Comments
 (0)