Drop superfluous copy in note_dao

pull/268/head
Oliver Marriott 2 years ago
parent 7740bbce43
commit c3c16a5bf3

@ -420,10 +420,7 @@ func (d *NoteDAO) expandMentionsIntoMatch(opts core.NoteFindOpts) (core.NoteFind
}
// Expand the mention queries in the match predicate.
match := make([]string, len(opts.Match))
copy(match, opts.Match)
match = append(match, " ("+strings.Join(mentionQueries, " OR ")+") ")
opts.Match = match
opts.Match = append(opts.Match, " ("+strings.Join(mentionQueries, " OR ")+") ")
return opts, nil
}

Loading…
Cancel
Save