Skip to content

Commit 08bacc1

Browse files
committed
SystemTask: Use "&&" instead of "and" for operators
As per the coding style, only primary spelling should be used for operators.
1 parent 12314c0 commit 08bacc1

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/systemtask/SystemTask.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,15 +264,16 @@ void SystemTask::Work() {
264264
case Messages::TouchWakeUp: {
265265
if (touchHandler.GetNewTouchInfo()) {
266266
auto gesture = touchHandler.GestureGet();
267-
if (gesture != Pinetime::Applications::TouchEvents::None and
268-
((gesture == Pinetime::Applications::TouchEvents::DoubleTap and
269-
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) or
270-
(gesture == Pinetime::Applications::TouchEvents::Tap and
267+
if (gesture != Pinetime::Applications::TouchEvents::None &&
268+
((gesture == Pinetime::Applications::TouchEvents::DoubleTap &&
269+
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::DoubleTap)) ||
270+
(gesture == Pinetime::Applications::TouchEvents::Tap &&
271271
settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::SingleTap)))) {
272272
GoToRunning();
273273
}
274274
}
275-
} break;
275+
break;
276+
}
276277
case Messages::GoToSleep:
277278
if (doNotGoToSleep) {
278279
break;

0 commit comments

Comments
 (0)