Commit a16b261
fix: simplify branch name filtering to satisfy linter
Remove redundant HasPrefix check before TrimPrefix call. The
strings.TrimPrefix function is safe to call unconditionally as it
returns the original string if the prefix doesn't exist.
Fixes linter error: S1017: should replace this `if` statement with
an unconditional `strings.TrimPrefix` (gosimple)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 80f461e commit a16b261
1 file changed
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 181 | + | |
184 | 182 | | |
185 | 183 | | |
186 | 184 | | |
| |||
0 commit comments