Skip to content

Commit 4174b3c

Browse files
committed
Style fix.
1 parent 1795dcb commit 4174b3c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

include/osmium/thread/pool.hpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,10 @@ namespace osmium {
124124
while (true) {
125125
function_wrapper task;
126126
m_work_queue.wait_and_pop(task);
127-
if (task) {
128-
if (task()) {
129-
// The called tasks returns true only when the
130-
// worker thread should shut down.
131-
return;
132-
}
127+
if (task && task()) {
128+
// The called tasks returns true only when the
129+
// worker thread should shut down.
130+
return;
133131
}
134132
}
135133
}

0 commit comments

Comments
 (0)