summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/models/user.go b/models/user.go
index ab29683a7b..2e4f971662 100644
--- a/models/user.go
+++ b/models/user.go
@@ -1409,9 +1409,7 @@ type SearchUserOptions struct {
}
func (opts *SearchUserOptions) toConds() builder.Cond {
-
- var cond = builder.NewCond()
- cond = cond.And(builder.Eq{"type": opts.Type})
+ var cond builder.Cond = builder.Eq{"type": opts.Type}
if len(opts.Keyword) > 0 {
lowerKeyword := strings.ToLower(opts.Keyword)