diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-10-18 03:47:12 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-17 20:47:12 +0100 |
commit | 4a57c9ea17a86e579751025cd0a7c2e6de374726 (patch) | |
tree | d9de60079592c541c9e6f2a983ec754199739a2f /modules/gitgraph | |
parent | 5326f4c9c59cce8a1d8f78afd486ebb8688b45ab (diff) | |
download | gitea-4a57c9ea17a86e579751025cd0a7c2e6de374726.tar.gz gitea-4a57c9ea17a86e579751025cd0a7c2e6de374726.zip |
Fix some lints (#17337)
Fix some linting problems.
Diffstat (limited to 'modules/gitgraph')
-rw-r--r-- | modules/gitgraph/graph_models.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gitgraph/graph_models.go b/modules/gitgraph/graph_models.go index 86bd8cb237..95f761742e 100644 --- a/modules/gitgraph/graph_models.go +++ b/modules/gitgraph/graph_models.go @@ -220,7 +220,7 @@ func newRefsFromRefNames(refNames []byte) []git.Reference { refName := string(refNameBytes) if strings.HasPrefix(refName, "tag: ") { refName = strings.TrimPrefix(refName, "tag: ") - } else if strings.HasPrefix(refName, "HEAD -> ") { + } else { refName = strings.TrimPrefix(refName, "HEAD -> ") } refs = append(refs, git.Reference{ |