diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2024-03-16 17:20:13 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-16 10:20:13 +0100 |
commit | e0ea3811c4178ffa30452b7ca4bd211e59326f91 (patch) | |
tree | bc9b585c2e5f7b81b285dcf6e48c2905409e137a /modules/indexer/code/elasticsearch/elasticsearch.go | |
parent | 6ead30dbc469803d7e8361b13217e07d87d6f80d (diff) | |
download | gitea-e0ea3811c4178ffa30452b7ca4bd211e59326f91.tar.gz gitea-e0ea3811c4178ffa30452b7ca4bd211e59326f91.zip |
Refactor AddParam to AddParamIfExist (#29834)
When read the code: `pager.AddParam(ctx, "search", "search")`, the
question always comes: What is it doing? Where is the value from? Why
"search" / "search" ?
Now it is clear: `pager.AddParamIfExist("search", ctx.Data["search"])`
Diffstat (limited to 'modules/indexer/code/elasticsearch/elasticsearch.go')
0 files changed, 0 insertions, 0 deletions