out_loki: remove kv only if 'remove_keys' enabled
@@ -577,8 +577,6 @@ static int prepare_remove_keys(struct flb_loki *ctx)
return -1;
}
}
- }
-
size = mk_list_size(patterns);
flb_plg_debug(ctx->ins, "remove_mpa size: %d", size);
if (size > 0) {
@@ -587,6 +585,7 @@ static int prepare_remove_keys(struct flb_loki *ctx)
return -1;
}
}
+ }
return 0;
}
