src.ctf.fs: remove goto error handling from fs.cpp
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 9 Apr 2024 21:09:47 +0000 (17:09 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Wed, 17 Apr 2024 17:57:53 +0000 (13:57 -0400)
commit7d3328398d8918136c28222565c4431cd653be37
treebc7161a84b47306188649af001b6e3d67d9dfb9e
parentfbd128122c07c6a0287bde19e2bfc8ee577396ad
src.ctf.fs: remove goto error handling from fs.cpp

gotos prevent declaring variables in the middle of functions, which is
sometimes necessary in C++.  Remove gotos used for error handling,
replace them with returning directly.

Change-Id: I15b5d6aa4897e5326fc03e2626045c83258d8eca
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8318
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12339
Tested-by: jenkins <jenkins@lttng.org>
src/plugins/ctf/fs-src/fs.cpp
This page took 0.023487 seconds and 4 git commands to generate.