mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 12:15:20 +01:00
fix golint issues
This commit is contained in:
parent
bc5d71ee86
commit
f6a9f67613
@ -1164,7 +1164,7 @@ func TestGetRepoJobToStop(t *testing.T) {
|
||||
}
|
||||
var err error
|
||||
var i int64
|
||||
ids := make([]int64, 0)
|
||||
var ids []int64
|
||||
for _, j := range jobs {
|
||||
i, err = AddRepJob(j)
|
||||
ids = append(ids, i)
|
||||
|
@ -351,10 +351,10 @@ func ResetRunningJobs() error {
|
||||
return err
|
||||
}
|
||||
|
||||
// GetRepJobsByStatus get jobs of certain statuses
|
||||
// GetRepJobByStatus get jobs of certain statuses
|
||||
func GetRepJobByStatus(status ...string) ([]*models.RepJob, error) {
|
||||
var res []*models.RepJob
|
||||
t := make([]interface{}, 0)
|
||||
var t []interface{}
|
||||
for _, s := range status {
|
||||
t = append(t, interface{}(s))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user