Skip to content

Commit bf83a41

Browse files
committed
add a missing (but unnecessary) NotFound call
1 parent 7c2cb4b commit bf83a41

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/explore/user.go

+1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ func RenderUserSearch(ctx *context.Context, opts *user_model.SearchUserOptions,
8686
}
8787

8888
if opts.SupportedSortOrders != nil && !opts.SupportedSortOrders.Contains(sortOrder) {
89+
ctx.NotFound("unsupported sort order", nil)
8990
return
9091
}
9192

0 commit comments

Comments
 (0)