History

Update module github.com/golangci/golangci-lint/cmd/golangci-lint to v2 (forgejo) (#7367) Co-authored-by: Renovate Bot <forgejo-renovate-action@forgejo.org> Co-committed-by: Renovate Bot <forgejo-renovate-action@forgejo.org>

Renovate Bot committed 1 year ago

Commit fed2d811 parent 51ff497427 files · +2044 −2047Browse files

Showing the changes to services/gitdiff/gitdiff.go (1 of 427 files). Show all

Unified · Split

services/gitdiff/gitdiff.go+1−1
@@ -1060,7 +1060,7 @@ func readFileName(rd *strings.Reader) (string, bool) { · 1059 unmodified lines
10601060 _, _ = fmt.Fscanf(rd, "%s ", &name)
10611061 char, _ := rd.ReadByte()
10621062 _ = rd.UnreadByte()
1063− for !(char == 0 || char == '"' || char == 'b') {
1063+ for char != 0 && char != '"' && char != 'b' {
10641064 var suffix string
10651065 _, _ = fmt.Fscanf(rd, "%s ", &suffix)
10661066 name += " " + suffix