Skip to content

Commit

Permalink
fixed ktlint
Browse files Browse the repository at this point in the history
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
  • Loading branch information
amsiglan committed Sep 25, 2024
1 parent ed90d9c commit 9eeeaf6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fun validateUrl(urlString: String) {

fun validateUrlHost(urlString: String, hostDenyList: List<String>) {
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)) {
Expand Down

0 comments on commit 9eeeaf6

Please sign in to comment.