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; std::stringstream keypresses;
bool anything = false; bool anything = false;
if (report_data.modifiers) anything = true; if (report_data.modifiers) {
else for (int i = 0; i < KEY_BYTES; i++) if (report_data.keys[i]) { anything = true;
} else {
for (int i = 0; i < KEY_BYTES; i++) {
if (report_data.keys[i]) {
anything = true; anything = true;
break; break;
} }
}
}
if (!anything) { if (!anything) {
keypresses << "none"; keypresses << "none";

Loading…
Cancel
Save