Skip to content

Commit 46d1b34

Browse files
committed
Adapt one-line ifs to general style in same source file.
1 parent 61cd248 commit 46d1b34

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cores/esp8266/Schedule.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ void run_scheduled_recurrent_functions()
176176
done = current == stop;
177177
const bool wakeupToken = current->wakeupToken && current->wakeupToken->load();
178178
const bool wakeup = current->wakeupTokenCmp != wakeupToken;
179-
if (wakeup) current->wakeupTokenCmp = wakeupToken;
179+
if (wakeup)
180+
current->wakeupTokenCmp = wakeupToken;
180181
bool callNow = current->callNow;
181182

182183
if ((wakeup || callNow) && !current->mFunc())
@@ -187,7 +188,8 @@ void run_scheduled_recurrent_functions()
187188
auto to_ditch = current;
188189

189190
// removing rLast
190-
if (rLast == current) rLast = prev;
191+
if (rLast == current)
192+
rLast = prev;
191193

192194
current = current->mNext;
193195
prev->mNext = current;

0 commit comments

Comments
 (0)