From 1441fb29d93481f7bea76bbfa2a9f289ed1ac4f0 Mon Sep 17 00:00:00 2001 From: Anton Medvedev Date: Sun, 7 Dec 2025 16:56:52 +0100 Subject: Refactor code by introducing `Ref` type --- commit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commit.go') diff --git a/commit.go b/commit.go index 571c8e2..ef18913 100644 --- a/commit.go +++ b/commit.go @@ -230,7 +230,7 @@ func generateCommitPage(commit git.Commit, params Params) error { }) currentRef := params.DefaultRef - if commit.Branch != "" { + if !commit.Branch.IsEmpty() { currentRef = commit.Branch } -- cgit v1.2.3