
Co-authored-by: Amélie Renard <44666826+amelie-renard-sonarsource@users.noreply.github.com>
14 lines
231 B
Plaintext
14 lines
231 B
Plaintext
[source,swift]
|
|
----
|
|
func getReadableStatus(job: Job) -> String {
|
|
let status: String;
|
|
if (job.isRunning) {
|
|
status = "Running";
|
|
}
|
|
else {
|
|
status = job.hasErrors ? "Failed" : "Succeeded";
|
|
}
|
|
return status;
|
|
}
|
|
----
|