Skip to content

Commit

Permalink
refactor(go-resty#432): Change The Second If Statement To Else Statement
Browse files Browse the repository at this point in the history
  • Loading branch information
mhdiiilham committed Sep 2, 2021
1 parent ae037fd commit f16905b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ func (r *Request) SetMultiValueHeaders(headers map[string][]string) *Request {

if len(values) > 1 {
headerValue = strings.Join(values, ", ")
}

if len(values) == 1 {
} else {
headerValue = values[0]
}

Expand Down

0 comments on commit f16905b

Please sign in to comment.