Skip to content

Commit 41e955f

Browse files
authored
Merge branch 'main' into dependabot/github_actions/codecov/codecov-action-5.4.3
2 parents 4be7f00 + 7053e1d commit 41e955f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

populate.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ func (m *Manager) PopulateFromCookies(r *http.Request, dest interface{}) error {
3131
omitempty := false
3232

3333
for _, part := range parts[1:] {
34-
if part == "signed" {
34+
switch part {
35+
case "signed":
3536
signed = true
36-
} else if part == "unsigned" {
37+
case "unsigned":
3738
unsigned = true
38-
} else if part == "omitempty" {
39+
case "omitempty":
3940
omitempty = true
4041
}
4142
}

0 commit comments

Comments
 (0)