1
1
mirror of https://github.com/go-gitea/gitea synced 2025-10-30 02:48:26 +00:00
Files
gitea/modules/git/log_name_status.go
Eng Zer Jun ad3cbbc3b1 Remove redundant nil check in WalkGitLog (#26773)
From the Go specification:

> "1. For a nil slice, the number of iterations is 0."
https://go.dev/ref/spec#For_range

Therefore, an additional nil check for before the loop is unnecessary.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-08-29 11:03:43 +00:00

10 KiB