From d9a7748cdc3f13392acbde87edd18602b566c216 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Mon, 9 Sep 2024 22:23:07 -0400 Subject: bump to go 1.23 (#31855) --- modules/git/log_name_status.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/git') diff --git a/modules/git/log_name_status.go b/modules/git/log_name_status.go index 9e345f3ee0..1fd58abfcd 100644 --- a/modules/git/log_name_status.go +++ b/modules/git/log_name_status.go @@ -114,7 +114,7 @@ type LogNameStatusCommitData struct { // Next returns the next LogStatusCommitData func (g *LogNameStatusRepoParser) Next(treepath string, paths2ids map[string]int, changed []bool, maxpathlen int) (*LogNameStatusCommitData, error) { var err error - if g.next == nil || len(g.next) == 0 { + if len(g.next) == 0 { g.buffull = false g.next, err = g.rd.ReadSlice('\x00') if err != nil { -- cgit v1.2.3