mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-31 13:48:25 +00:00
LibCore+Userland: Make Core::Timer::create_single_shot() return ErrorOr
clang-format sure has some interesting opinions about where to put a method call that comes after a lambda. :thonk:
This commit is contained in:
committed by
Andreas Kling
parent
a15d44f019
commit
a8cf0c9371
@@ -1857,9 +1857,9 @@ ErrorOr<Vector<Line::CompletionSuggestion>> Shell::complete_via_program_itself(s
|
||||
true);
|
||||
|
||||
Vector<Line::CompletionSuggestion> suggestions;
|
||||
auto timer = Core::Timer::create_single_shot(300, [&] {
|
||||
auto timer = TRY(Core::Timer::create_single_shot(300, [&] {
|
||||
Core::EventLoop::current().quit(1);
|
||||
});
|
||||
}));
|
||||
timer->start();
|
||||
|
||||
// Restrict the process to effectively readonly access to the FS.
|
||||
|
||||
Reference in New Issue
Block a user