Skip to content

Commit

Permalink
tautological condition
Browse files Browse the repository at this point in the history
  • Loading branch information
danchengash committed Sep 16, 2024
1 parent b9d696f commit ab084e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func NewReq(url string, body *[]byte, headers *map[string]string, debug ...bool)
if body == nil {
req.Header.SetMethod(fasthttp.MethodGet)

} else if body != nil {
} else {
//POST REQUEST
req.Header.SetMethod(fasthttp.MethodPost)
req.SetBodyRaw(*body)
Expand Down

0 comments on commit ab084e5

Please sign in to comment.