Files
Gadam JumayevandClaude Opus 5 85de0da47a Adopt cmp.Or for zero-value fallbacks (#40295)
* Adopt cmp.Or for zero-value fallbacks

Replace hand-rolled zero-value fallbacks with cmp.Or at 163 call sites
across 100 files. The `if x == "" { x = y }` and ternary-style helper
patterns become a single expression; behaviour is unchanged, since
cmp.Or returns the first non-zero argument and the final fallback was
already the last branch in each original.

Also ignore the compiled gen-plugin-manifest-docs and gen-plugin-godocs
helper binaries, which are build artifacts of the docs scripts and were
not previously covered by docs/site/.gitignore.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

* Remove unused 'cmp' import from metrics.go

Removed unused import for 'cmp' package.

* Update .gitignore to remove Go binaries

Removed compiled Go helper binaries from .gitignore.

---------

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-11-27 16:26:39 +00:00
..