Skip to content

Commit f390937

Browse files
committed
pipeline: outputs: es: code deduplication
Signed-off-by: Marat Abrarov <[email protected]>
1 parent 01c4458 commit f390937

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

plugins/out_es/es.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1088,10 +1088,6 @@ static int elasticsearch_response_test(struct flb_config *config,
10881088
flb_plg_warn(ctx->ins, "http_do=%i URI=%s", ret, ec->uri);
10891089
goto error;
10901090
}
1091-
if (ret != 0) {
1092-
flb_plg_warn(ctx->ins, "http_do=%i URI=%s", ret, ec->uri);
1093-
goto error;
1094-
}
10951091
else {
10961092
/* The request was issued successfully, validate the 'error' field */
10971093
flb_plg_debug(ctx->ins, "HTTP Status=%i URI=%s", c->resp.status, ec->uri);

0 commit comments

Comments
 (0)