mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 23:57:42 +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 {
|
||||
if status == models.TaskStatusFailed || status == models.TaskStatusStopped || status == models.TaskStatusSucceed {
|
||||
return true
|
||||
}
|
||||
return false
|
||||
return status == models.TaskStatusFailed || status == models.TaskStatusStopped || status == models.TaskStatusSucceed
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user