Skip to content
This repository has been archived by the owner on Mar 16, 2024. It is now read-only.

Commit

Permalink
assignOp: replace i = i + i with i += i (gocritic)
Browse files Browse the repository at this point in the history
  • Loading branch information
Edward Muller committed Sep 9, 2019
1 parent 6153d4d commit 9ce4eb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion registry/authchallenge.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func expectTokenOrQuoted(s string) (value string, rest string) {
p := make([]byte, len(s)-1)
j := copy(p, s[:i])
escape := true
for i = i + i; i < len(s); i++ {
for i += i; i < len(s); i++ {
b := s[i]
switch {
case escape:
Expand Down

0 comments on commit 9ce4eb8

Please sign in to comment.