mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-28 13:11:15 -03:00
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:
@@ -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(); }};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user