Skip to content

Commit

Permalink
Use empty instead of length.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Lalancette <[email protected]>
  • Loading branch information
clalancette committed Mar 31, 2020
1 parent 9a1d4da commit ad0f40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joy/src/joy_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class Joystick
diagnostic_.update();
}

if (joy_dev_ff_.length())
if (!joy_dev_ff_.empty())
{
ff_fd_ = open(joy_dev_ff_.c_str(), O_RDWR);

Expand Down

0 comments on commit ad0f40c

Please sign in to comment.