diff --git a/src/main/kotlin/org/opensearch/commons/alerting/model/ChainedMonitorFindings.kt b/src/main/kotlin/org/opensearch/commons/alerting/model/ChainedMonitorFindings.kt index c5f2c472..92192eec 100644 --- a/src/main/kotlin/org/opensearch/commons/alerting/model/ChainedMonitorFindings.kt +++ b/src/main/kotlin/org/opensearch/commons/alerting/model/ChainedMonitorFindings.kt @@ -75,8 +75,8 @@ data class ChainedMonitorFindings( when (fieldName) { MONITOR_ID_FIELD -> { - if(!xcp.currentToken().equals(XContentParser.Token.VALUE_NULL)) - monitorId = xcp.text() + if (!xcp.currentToken().equals(XContentParser.Token.VALUE_NULL)) + monitorId = xcp.text() } MONITOR_IDS_FIELD -> {