Skip to content

Commit

Permalink
rule can be a message mapping even if a field mapping is provided as …
Browse files Browse the repository at this point in the history
…well (#135)
  • Loading branch information
mikaelarguedas authored Aug 10, 2018
1 parent 7c988ad commit 0f1dbba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ros1_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def __init__(self, data, expected_package_name):
'Mapping for package %s contains unknown field(s)' % self.ros2_package_name)

def is_message_mapping(self):
return self.ros1_message_name is not None and self.fields_1_to_2 is None
return self.ros1_message_name is not None

def is_field_mapping(self):
return self.fields_1_to_2 is not None
Expand Down

0 comments on commit 0f1dbba

Please sign in to comment.