mirror of
https://github.com/unpoller/unpoller.git
synced 2026-07-29 09:12:38 -04:00
Replace manual array indexing (labels[1], labels[2], labels[3]) with
cleaner append syntax using slice notation (labels[1:]...).
This makes the code more maintainable and idiomatic Go.
Before: labelTotal := []string{"total", labels[1], labels[2], labels[3]}
After: labelTotal := append([]string{"total"}, labels[1:]...)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>