1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

appease golangci-lint (#2512)

This commit is contained in:
Jesse Duffield
2023-03-19 11:20:29 +11:00
committed by GitHub
parent 4f57bf22c9
commit e6274af015
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ func (gui *Gui) getCurrentBranch(path string) string {
if err == nil {
content := strings.TrimSpace(string(headFile))
refsPrefix := "ref: refs/heads/"
branchDisplay := ""
var branchDisplay string
if strings.HasPrefix(content, refsPrefix) {
// is a branch
branchDisplay = strings.TrimPrefix(content, refsPrefix)