mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-25 07:57: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 {
|
||||
var hasErrors = ! isSuccess
|
||||
if (info.useErrorStreamAsErrorIndicator && ! hasErrors) {
|
||||
hasErrors = hasErrors || error.size > 0
|
||||
hasErrors = hasErrors || error.isNotEmpty()
|
||||
}
|
||||
if (info.useInputStreamAsErrorIndicator && ! hasErrors) {
|
||||
hasErrors = hasErrors || input.size > 0
|
||||
hasErrors = hasErrors || input.isNotEmpty()
|
||||
}
|
||||
|
||||
return ! hasErrors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue