refactor: clean up verbose and redundant comments
Trim or remove comments that: - State the obvious (function names already convey purpose) - Repeat what the code clearly shows - Are excessively long without adding value Keep comments that explain *why*, not *what*.
This commit is contained in:
parent
805e7ffdc2
commit
5b942a5fd6
11 changed files with 16 additions and 102 deletions
|
|
@ -25,11 +25,6 @@ import (
|
|||
)
|
||||
|
||||
// MergeResponses merges multiple compatible JSON responses.
|
||||
//
|
||||
// MVP merge semantics:
|
||||
// - results are concatenated with a simple de-dup key (engine|title|url)
|
||||
// - suggestions/corrections are de-duplicated as sets
|
||||
// - answers/infoboxes/unresponsive_engines are concatenated (best-effort)
|
||||
func MergeResponses(responses []contracts.SearchResponse) contracts.SearchResponse {
|
||||
var merged contracts.SearchResponse
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue