update ktlint plugin to 11.3.1, format code (#3442)
This commit is contained in:
parent
774d79d666
commit
d839f18267
141 changed files with 589 additions and 428 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue