aboutsummaryrefslogtreecommitdiffstats
path: root/models/admin.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2016-11-12 16:29:18 +0800
committerThibault Meyer <0xbaadf00d@users.noreply.github.com>2016-11-12 09:29:18 +0100
commit30a37311f85b3058c8c5b94427208281568eba91 (patch)
treee70d1f01f0e97fb9cb5a4f79b96a65185f1ae7f7 /models/admin.go
parent555d8b16cb8670dd0a4e9094d26091eba6a6df36 (diff)
downloadgitea-30a37311f85b3058c8c5b94427208281568eba91.tar.gz
gitea-30a37311f85b3058c8c5b94427208281568eba91.zip
use in instead string join (#155)
Diffstat (limited to 'models/admin.go')
-rw-r--r--models/admin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/admin.go b/models/admin.go
index 605e21babc..14a0e8d009 100644
--- a/models/admin.go
+++ b/models/admin.go
@@ -14,7 +14,6 @@ import (
"github.com/Unknwon/com"
"github.com/go-xorm/xorm"
- "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/setting"
)
@@ -131,7 +130,7 @@ func DeleteNoticesByIDs(ids []int64) error {
return nil
}
_, err := x.
- Where("id IN (" + strings.Join(base.Int64sToStrings(ids), ",") + ")").
+ In("id", ids).
Delete(new(Notice))
return err
}