Skip to content

Commit 356bfc0

Browse files
author
Richardvdketterij
committed
remove redundent if and typo
1 parent 679321a commit 356bfc0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

smach_ros/smach_ros/simple_action_state.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def _execution_timer(self):
250250
time.sleep(0.1)
251251
except Exception as e:
252252
self.node.get_logger().error(
253-
f"Caught exception: {str(e)} Failed to sleep while running '{self._action_name}'")
253+
f"Caught exception: {str(e)}. Failed to sleep while running '{self._action_name}'")
254254
break
255255

256256
# Smach State API
@@ -476,8 +476,7 @@ def get_result_str(i):
476476
else:
477477
return 'UNKNOWN (' + str(i) + ')'
478478

479-
if future.done():
480-
goal_result = future.result()
479+
goal_result = future.result()
481480

482481
# Calculate duration
483482
self._duration = self.node.get_clock().now() - self._activate_time

0 commit comments

Comments
 (0)