Skip to content

Commit

Permalink
Send empty string instead of using sentinel value.
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Sep 12, 2024
1 parent da543ab commit beadb78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/gz/sim/components/Model.hh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ namespace serializers
}
}

// Why bother even sending this. Wouldn't a blank string work?
if (skip)
if (!skip)
{
_out << "<?xml version=\"1.0\" ?>"
<< "<sdf version='" << SDF_PROTOCOL_VERSION << "'>"
Expand Down

0 comments on commit beadb78

Please sign in to comment.