ktlint: Fix multi-line if-else violations
Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
This commit is contained in:
parent
2c808b0e86
commit
0641c19388
8 changed files with 37 additions and 21 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue