Merge branch 'simplify-get-branch-script' into 'master'

Simplify get_branch script

See merge request micro-ROS/ros_tracing/tracetools_analysis!60
This commit is contained in:
Christophe Bedard 2020-03-21 23:52:47 +00:00
commit 401d219400

View file

@ -109,11 +109,8 @@ def main() -> int:
) )
# Print value # Print value
prefix = 'branch: ' if check else '' prefix = 'ros2_tracing branch: ' if check else ''
if branch is None: print(prefix + (branch or default_branch))
print(prefix + default_branch)
else:
print(prefix + branch)
return 0 return 0