update ktlint plugin to 11.3.1, format code (#3442)

This commit is contained in:
Konrad Pozniak 2023-03-13 13:16:39 +01:00 committed by GitHub
commit d839f18267
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
141 changed files with 589 additions and 428 deletions

View file

@ -14,9 +14,13 @@ class ProxyConfiguration private constructor(
return null
}
fun isValidProxyPort(value: Any): Boolean = when (value) {
is String -> if (value == "") true else value.runCatching(String::toInt).map(
PROXY_RANGE::contains
).getOrDefault(false)
is String -> if (value == "") {
true
} else {
value.runCatching(String::toInt).map(
PROXY_RANGE::contains
).getOrDefault(false)
}
is Int -> PROXY_RANGE.contains(value)
else -> false
}