From 131e7aa858ce229f8045e2c547076c6cb3023539 Mon Sep 17 00:00:00 2001 From: lecaros Date: Wed, 4 Oct 2023 20:09:52 -0300 Subject: [PATCH] out_chronicle: remove unnecessary if. To this point, found will always be FLB_FALSE (hence the expression will always be true). It's only changed in one line, and that block ends with a break, hence never reaching the removed if statement. Signed-off-by: lecaros --- plugins/out_chronicle/chronicle.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/out_chronicle/chronicle.c b/plugins/out_chronicle/chronicle.c index db40d151751..9c5fd870534 100644 --- a/plugins/out_chronicle/chronicle.c +++ b/plugins/out_chronicle/chronicle.c @@ -603,9 +603,7 @@ static flb_sds_t flb_pack_msgpack_extract_log_key(void *out_context, uint64_t by } /* If log_key was not found in the current record, mark log key as missing */ - if (found == FLB_FALSE) { - log_key_missing++; - } + log_key_missing++; } if (log_key_missing > 0) {