mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
This commit is contained in:
committed by
techknowlogick
parent
4f5dbc4d00
commit
c6f1825fe9
@ -1376,9 +1376,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)
|
||||
|
Reference in New Issue
Block a user