sink.text.pretty: simplify error handling in pretty_consume
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 14 Apr 2020 18:33:24 +0000 (14:33 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Wed, 15 Apr 2020 00:26:26 +0000 (20:26 -0400)
commit97f261eb8a2edd7861534455b3ddd3d35fdbded2
tree9ea4d5759a9ae84b647c2766ab0d3d37290e8e9f
parenta8e4caa0f4d3c068ea38a09c62156cb54462698c
sink.text.pretty: simplify error handling in pretty_consume

Replace the switch with a simple condition.  On _END, it is not
necessary to put the message iterator, that will be done in
pretty_finalize.

Change-Id: Ia0bd20e0d119cae155c03cc5d7656a5c4619ebb8
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/3406
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/plugins/text/pretty/pretty.c
This page took 0.024108 seconds and 4 git commands to generate.