mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
code simplify
Signed-off-by: hao.cheng <hao.cheng@daocloud.io>
This commit is contained in:
parent
3810dcef0f
commit
758e7aa06f
@ -351,8 +351,5 @@ func UpdateTaskStatus(id int64, status string, statusRevision int64, statusCondi
|
|||||||
}
|
}
|
||||||
|
|
||||||
func taskFinished(status string) bool {
|
func taskFinished(status string) bool {
|
||||||
if status == models.TaskStatusFailed || status == models.TaskStatusStopped || status == models.TaskStatusSucceed {
|
return status == models.TaskStatusFailed || status == models.TaskStatusStopped || status == models.TaskStatusSucceed
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user