mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Refactor.
This commit is contained in:
parent
abc9002292
commit
5bcb8185b8
1 changed files with 2 additions and 2 deletions
|
@ -105,10 +105,10 @@ open class NewRunCommand(val info: RunCommandInfo) {
|
||||||
open protected fun isSuccess(isSuccess: Boolean, input: List<String>, error: List<String>) : Boolean {
|
open protected fun isSuccess(isSuccess: Boolean, input: List<String>, error: List<String>) : Boolean {
|
||||||
var hasErrors = ! isSuccess
|
var hasErrors = ! isSuccess
|
||||||
if (info.useErrorStreamAsErrorIndicator && ! hasErrors) {
|
if (info.useErrorStreamAsErrorIndicator && ! hasErrors) {
|
||||||
hasErrors = hasErrors || error.size > 0
|
hasErrors = hasErrors || error.isNotEmpty()
|
||||||
}
|
}
|
||||||
if (info.useInputStreamAsErrorIndicator && ! hasErrors) {
|
if (info.useInputStreamAsErrorIndicator && ! hasErrors) {
|
||||||
hasErrors = hasErrors || input.size > 0
|
hasErrors = hasErrors || input.isNotEmpty()
|
||||||
}
|
}
|
||||||
|
|
||||||
return ! hasErrors
|
return ! hasErrors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue