Skip to content

Commit

Permalink
make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurHlt committed Mar 9, 2021
1 parent ee4d07c commit dcbc406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aggregate_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (a AggregateHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
}
for _, endpoint := range endpoints {
var body io.Reader = nil
if previousData != nil && len(previousData) > 0 {
if len(previousData) > 0 {
body = bytes.NewBuffer(previousData)
}
reqEndpoint, err := http.NewRequest(req.Method, req.URL.String(), body)
Expand Down

0 comments on commit dcbc406

Please sign in to comment.