Skip to content

Commit

Permalink
out_prometheus_exporter: remove dead code notified from coverity (CID…
Browse files Browse the repository at this point in the history
… 508348) (#9207)

Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 authored Aug 14, 2024
1 parent 05e823d commit 88a5f1e
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions plugins/out_prometheus_exporter/prom.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,6 @@ static void cb_prom_flush(struct flb_event_chunk *event_chunk,
(char *) event_chunk->data,
event_chunk->size, &off)) == ok) {

if (ret != 0) {
flb_sds_destroy(text);
FLB_OUTPUT_RETURN(FLB_ERROR);
}

/* append labels set by config */
append_labels(ctx, cmt);

Expand Down

0 comments on commit 88a5f1e

Please sign in to comment.