pass govet

This commit is contained in:
Wenkai Yin 2016-06-29 18:14:50 +08:00
parent 2f9ace7eeb
commit d7f78502d7

View File

@ -168,12 +168,11 @@ func (ra *RepositoryAPI) Delete() {
log.Infof("delete tag: %s %s", repoName, t)
go TriggerReplicationByRepository(repoName, []string{t}, models.RepOpDelete)
go func() {
if err := dao.AccessLog(user, project, repoName, t, "delete"); err != nil {
go func(tag string) {
if err := dao.AccessLog(user, project, repoName, tag, "delete"); err != nil {
log.Errorf("failed to add access log: %v", err)
}
}()
}(t)
}
go func() {