Skip to content

Commit 2ceb6d2

Browse files
committed
pipeline: outputs: es: code deduplication
Signed-off-by: Marat Abrarov <[email protected]>
1 parent 2791bd8 commit 2ceb6d2

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
@@ -1085,10 +1085,6 @@ static int elasticsearch_response_test(struct flb_config *config,
10851085
flb_plg_warn(ctx->ins, "http_do=%i URI=%s", ret, ec->uri);
10861086
goto error;
10871087
}
1088-
if (ret != 0) {
1089-
flb_plg_warn(ctx->ins, "http_do=%i URI=%s", ret, ec->uri);
1090-
goto error;
1091-
}
10921088
else {
10931089
/* The request was issued successfully, validate the 'error' field */
10941090
flb_plg_debug(ctx->ins, "HTTP Status=%i URI=%s", c->resp.status, ec->uri);

0 commit comments

Comments
 (0)