Skip to content

Commit

Permalink
Adjust for lint
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmundxia committed Sep 11, 2024
1 parent 306ebbe commit 58f8ccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions header_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1651,10 +1651,10 @@ func TestRequestHeaderSetCookie(t *testing.T) {
}

h.Set("cOOkie", "xx=yyy")
if string(h.Cookie("foo")) != "" {
if len(h.Cookie("foo")) != 0 {
t.Fatalf("Unexpected cookie %q. Expecting %q", h.Cookie("foo"), "")
}
if string(h.Cookie("baz")) != "" {
if len(h.Cookie("baz")) != 0 {
t.Fatalf("Unexpected cookie %q. Expecting %q", h.Cookie("baz"), "")
}
if string(h.Cookie("xx")) != "yyy" {
Expand Down

0 comments on commit 58f8ccd

Please sign in to comment.