7 lines
165 B
Plaintext
7 lines
165 B
Plaintext
![]() |
[source,javascript]
|
||
|
----
|
||
|
function getReadableStatus(job) {
|
||
|
return job.isRunning() ? "Running" : job.hasErrors() ? "Failed" : "Succeeded "; // Noncompliant
|
||
|
}
|
||
|
----
|