Remove ternary operator
This commit is contained in:
parent
7e1e2c0bd3
commit
9086933a93
|
@ -69,7 +69,11 @@ export default {
|
|||
return 'In progress'
|
||||
}
|
||||
|
||||
return this.task.success ? 'Completed' : 'Failed'
|
||||
if (!this.task.success) {
|
||||
return 'Failed'
|
||||
}
|
||||
|
||||
return 'Completed'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue