Simplify get_branch script
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
This commit is contained in:
parent
e6f2315ff6
commit
b2c5733dc5
1 changed files with 2 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue