summaryrefslogtreecommitdiffstats
path: root/models/ssh_key.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/ssh_key.go
parent555d8b16cb8670dd0a4e9094d26091eba6a6df36 (diff)
downloadgitea-30a37311f85b3058c8c5b94427208281568eba91.tar.gz
gitea-30a37311f85b3058c8c5b94427208281568eba91.zip
use in instead string join (#155)
Diffstat (limited to 'models/ssh_key.go')
-rw-r--r--models/ssh_key.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/models/ssh_key.go b/models/ssh_key.go
index 8670ac11c8..4a6acb8ecf 100644
--- a/models/ssh_key.go
+++ b/models/ssh_key.go
@@ -22,7 +22,6 @@ import (
"github.com/go-xorm/xorm"
"golang.org/x/crypto/ssh"
- "code.gitea.io/gitea/modules/base"
"code.gitea.io/gitea/modules/log"
"code.gitea.io/gitea/modules/process"
"code.gitea.io/gitea/modules/setting"
@@ -476,7 +475,7 @@ func deletePublicKeys(e *xorm.Session, keyIDs ...int64) error {
return nil
}
- _, err := e.In("id", strings.Join(base.Int64sToStrings(keyIDs), ",")).Delete(new(PublicKey))
+ _, err := e.In("id", keyIDs).Delete(new(PublicKey))
return err
}