Skip to content

Commit

Permalink
net/http: remove an unused variable in readCookies function
Browse files Browse the repository at this point in the history
Change-Id: I9d77655026f16a41a77bd0036d693a40cdd6d52f
Reviewed-on: https://go-review.googlesource.com/52090
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Joe Tsai <thebrokentoaster@gmail.com>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
  • Loading branch information
joekyo authored and dsnet committed Aug 10, 2017
1 parent 15cb18d commit 1ee55c3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/net/http/cookie.go
Expand Up @@ -208,7 +208,6 @@ func readCookies(h Header, filter string) []*Cookie {
continue
}
// Per-line attributes
parsedPairs := 0
for i := 0; i < len(parts); i++ {
parts[i] = strings.TrimSpace(parts[i])
if len(parts[i]) == 0 {
Expand All @@ -229,7 +228,6 @@ func readCookies(h Header, filter string) []*Cookie {
continue
}
cookies = append(cookies, &Cookie{Name: name, Value: val})
parsedPairs++
}
}
return cookies
Expand Down

0 comments on commit 1ee55c3

Please sign in to comment.