Add curly braces to make code clearer and satisfy cpplint

Signed-off-by: Michael Richters <gedankenexperimenter@gmail.com>
pull/1143/head
Michael Richters 3 years ago
parent 69333badc9
commit dfd9bff7bd
No known key found for this signature in database
GPG Key ID: 1288FD13E4EEF0C0

@ -63,11 +63,16 @@ void DefaultHIDReportConsumer::processHIDReport(
std::stringstream keypresses;
bool anything = false;
if (report_data.modifiers) anything = true;
else for (int i = 0; i < KEY_BYTES; i++) if (report_data.keys[i]) {
if (report_data.modifiers) {
anything = true;
} else {
for (int i = 0; i < KEY_BYTES; i++) {
if (report_data.keys[i]) {
anything = true;
break;
}
}
}
if (!anything) {
keypresses << "none";

Loading…
Cancel
Save