From b2c5733dc5d0246159040ceed390f5c8804a3a1a Mon Sep 17 00:00:00 2001 From: Christophe Bedard Date: Sat, 21 Mar 2020 19:51:27 -0400 Subject: [PATCH] Simplify get_branch script Signed-off-by: Christophe Bedard --- get_branch.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/get_branch.py b/get_branch.py index 483ab3f..23fa181 100644 --- a/get_branch.py +++ b/get_branch.py @@ -109,11 +109,8 @@ def main() -> int: ) # Print value - prefix = 'branch: ' if check else '' - if branch is None: - print(prefix + default_branch) - else: - print(prefix + branch) + prefix = 'ros2_tracing branch: ' if check else '' + print(prefix + (branch or default_branch)) return 0