Refactor: omit parens in lambdas with no parameters

TIL []{} is a thing.  We already do that in some places, so this improves
consistency, although it may be less obvious.
This commit is contained in:
Johannes Altmanninger
2020-10-10 12:50:07 +02:00
parent c325603d73
commit 8ef8fb3d94
3 changed files with 6 additions and 6 deletions

View File

@@ -212,7 +212,7 @@ static void pop_timer() {
}
cleanup_t push_timer(bool enabled) {
if (!enabled) return {[]() {}};
if (!enabled) return {[] {}};
active_timers.emplace_back(timer_snapshot_t::take());
return {[]() { pop_timer(); }};
return {[] { pop_timer(); }};
}