bt2/setup.py.in: improve legibility of our_get_config_vars a bit
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 8 Feb 2024 19:25:32 +0000 (14:25 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 9 Feb 2024 15:36:29 +0000 (10:36 -0500)
commitabc2ea2d83dd1edd603a936aba89e865b46e8ef3
tree0a33f07b927acf13056daf24bda8e28ca76a6d46
parent68533c73d2e18feee78de649b6572002cc7ade92
bt2/setup.py.in: improve legibility of our_get_config_vars a bit

This is a bit subjective, but avoid early returns / continue.  I like
early returns when there is clearly one "happy" of "main" path in a
function, for instance for error handling or returning early because a
function is a no-op.  But when handling different significant cases, I
prefer an explicit if/else.  It makes the different code paths stand
out visually.

Change-Id: I484eb4ec7187ce3c889507e31349c3b4461f3fc7
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/11764
src/bindings/python/bt2/setup.py.in
This page took 0.024578 seconds and 4 git commands to generate.