aboutsummaryrefslogtreecommitdiffstats
path: root/modules/git
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.com>2024-09-09 22:23:07 -0400
committerGitHub <noreply@github.com>2024-09-10 02:23:07 +0000
commitd9a7748cdc3f13392acbde87edd18602b566c216 (patch)
tree0f7191740e0335ccf61f12bb94d40ea36b7b0ed7 /modules/git
parent1620e3f03bad1feb22c8e9c3c9baf4da04aaefe5 (diff)
downloadgitea-d9a7748cdc3f13392acbde87edd18602b566c216.tar.gz
gitea-d9a7748cdc3f13392acbde87edd18602b566c216.zip
bump to go 1.23 (#31855)
Diffstat (limited to 'modules/git')
-rw-r--r--modules/git/log_name_status.go2
1 files changed, 1 insertions, 1 deletions
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 {