ktlint: Fix multi-line if-else violations

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
Aayush Gupta 2026-01-21 16:44:28 +08:00
parent 2c808b0e86
commit 0641c19388
8 changed files with 37 additions and 21 deletions

View file

@ -6,8 +6,9 @@ class PoTokenException(message: String) : Exception(message)
class BadWebViewException(message: String) : Exception(message)
fun buildExceptionForJsError(error: String): Exception {
return if (error.contains("SyntaxError"))
return if (error.contains("SyntaxError")) {
BadWebViewException(error)
else
} else {
PoTokenException(error)
}
}