summaryrefslogtreecommitdiffstats
path: root/models/repo_editor.go
diff options
context:
space:
mode:
authorThibault Meyer <meyer.thibault@gmail.com>2016-11-10 16:16:32 +0100
committerThibault Meyer <meyer.thibault@gmail.com>2016-11-10 20:59:51 +0100
commita4454f5d0fbeaacb94668012acbb4296465cb28f (patch)
treeeaf39d1935eda44cf16df08234d2bbddd39c3ddd /models/repo_editor.go
parentc040f2fbb13ef5ba2c6a619322d4801e9f78c885 (diff)
downloadgitea-a4454f5d0fbeaacb94668012acbb4296465cb28f.tar.gz
gitea-a4454f5d0fbeaacb94668012acbb4296465cb28f.zip
Rewrite XORM queries
Diffstat (limited to 'models/repo_editor.go')
-rw-r--r--models/repo_editor.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/models/repo_editor.go b/models/repo_editor.go
index ecbe029da1..998c2c61a9 100644
--- a/models/repo_editor.go
+++ b/models/repo_editor.go
@@ -387,7 +387,9 @@ func DeleteUploads(uploads ...*Upload) (err error) {
for i := 0; i < len(uploads); i++ {
ids[i] = uploads[i].ID
}
- if _, err = sess.In("id", ids).Delete(new(Upload)); err != nil {
+ if _, err = sess.
+ In("id", ids).
+ Delete(new(Upload)); err != nil {
return fmt.Errorf("delete uploads: %v", err)
}