Skip to content

Commit

Permalink
fix errcheck issue for exporter jaegerthrifthttp (open-telemetry#10435)
Browse files Browse the repository at this point in the history
Signed-off-by: Ziqi Zhao <[email protected]>
  • Loading branch information
fatsheep9146 authored May 31, 2022
1 parent 6574d2f commit d4102e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions exporter/jaegerthrifthttpexporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// nolint:errcheck
package jaegerthrifthttpexporter // import "github.com/open-telemetry/opentelemetry-collector-contrib/exporter/jaegerthrifthttpexporter"

import (
Expand Down Expand Up @@ -98,7 +97,7 @@ func (s *jaegerThriftHTTPSender) pushTraceData(
return consumererror.NewPermanent(err)
}

io.Copy(ioutil.Discard, resp.Body)
_, _ = io.Copy(ioutil.Discard, resp.Body)
resp.Body.Close()

if resp.StatusCode >= http.StatusBadRequest {
Expand Down

0 comments on commit d4102e0

Please sign in to comment.