mirror of
https://github.com/mattermost/mattermost.git
synced 2026-11-28 23:51:40 +08:00
* 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>