The function always returns nil for error since it is designed to return HEAD on detached HEAD state. Simplify signature to just return string. Fixes golangci-lint unparam warning. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
The function always returns nil for error since it is designed to return HEAD on detached HEAD state. Simplify signature to just return string. Fixes golangci-lint unparam warning. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>