summaryrefslogtreecommitdiff
path: root/Userland/Shell/Shell.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-01-11 16:31:10 +0000
committerAndreas Kling <kling@serenityos.org>2023-01-12 11:25:51 +0100
commita8cf0c9371f7ba500cc4920889bc06d78623e980 (patch)
treee6ac140bb2b697d69417e9ff944576350671a94a /Userland/Shell/Shell.cpp
parenta15d44f019dc60b001c565ce0b940cc87024dbfd (diff)
downloadserenity-a8cf0c9371f7ba500cc4920889bc06d78623e980.zip
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:
Diffstat (limited to 'Userland/Shell/Shell.cpp')
-rw-r--r--Userland/Shell/Shell.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Shell/Shell.cpp b/Userland/Shell/Shell.cpp
index 4476bc7f56..3e236db3d2 100644
--- a/Userland/Shell/Shell.cpp
+++ b/Userland/Shell/Shell.cpp
@@ -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.