Skip to content
Snippets Groups Projects
Commit bd3931c8 authored by Karen Feng's avatar Karen Feng
Browse files

Changed ifs with returns to if/else

parent 93c6015f
No related branches found
No related tags found
No related merge requests found
......@@ -53,14 +53,15 @@ class TaskInfo(
def status: String = {
if (running)
return "RUNNING"
if (failed)
return "FAILED"
if (successful)
return "SUCCESSFUL"
if (finished)
return "FINISHED"
"UNKNOWN"
"RUNNING"
else if (failed)
"FAILED"
else if (successful)
"SUCCESSFUL"
else if (finished)
"FINISHED"
else
"UNKNOWN"
}
def duration: Long = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment