Skip to content

Commit

Permalink
out_chronicle: remove unnecessary if.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
lecaros committed Oct 4, 2023
1 parent 81b1be5 commit 131e7aa
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/out_chronicle/chronicle.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 131e7aa

Please sign in to comment.