mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-18 16:25:16 +01:00
commit
91bc57d695
@ -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