From 9eeeaf6fd240fc779a60f4184a5480db6465cabb Mon Sep 17 00:00:00 2001 From: Amardeepsingh Siglani Date: Tue, 24 Sep 2024 20:19:10 -0700 Subject: [PATCH] fixed ktlint Signed-off-by: Amardeepsingh Siglani --- .../opensearch/notifications/core/utils/ValidationHelpers.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt b/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt index be01bd3f..60f1c0a9 100644 --- a/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt +++ b/notifications/core/src/main/kotlin/org/opensearch/notifications/core/utils/ValidationHelpers.kt @@ -24,7 +24,7 @@ fun validateUrl(urlString: String) { fun validateUrlHost(urlString: String, hostDenyList: List) { val url = URL(urlString) - require( org.opensearch.notifications.spi.utils.getResolvedIps(url.host).isNotEmpty()) { + require(org.opensearch.notifications.spi.utils.getResolvedIps(url.host).isNotEmpty()) { "Host could not be resolved to a valid Ip address" } require(!org.opensearch.notifications.spi.utils.isHostInDenylist(urlString, hostDenyList)) {