1
Fork 0

ui(code-search): fix to use CodeSearchMode

Drop unused IsFuzzy and IsRegExp
This commit is contained in:
Radosław Piliszek 2024-08-27 17:11:48 +02:00
parent 7068456d20
commit d2efdda911
5 changed files with 2 additions and 6 deletions

View file

@ -63,8 +63,6 @@ func Search(ctx *context.Context) {
ctx.Data["Keyword"] = keyword
ctx.Data["Language"] = language
ctx.Data["IsFuzzy"] = mode == FuzzySearchMode
ctx.Data["IsRegExp"] = mode == RegExpSearchMode
ctx.Data["CodeSearchMode"] = mode.String()
ctx.Data["PageIsViewCode"] = true