clang-tidy: enable hicpp-braces-around-statements and fix

This commit is contained in:
Daniel Agar
2019-10-28 10:50:31 -04:00
parent 744f06cc8f
commit a7f330075a
5 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -364,7 +364,7 @@ MavlinkFTP::_workList(PayloadHeader *payload, bool list_hidden)
// move to the requested offset
int requested_offset = payload->offset;
while (requested_offset-- > 0 && readdir(dp));
while (requested_offset-- > 0 && readdir(dp)) {}
for (;;) {
errno = 0;