From 989c111d6557659d5d47e2ad9b17cba9225f1122 Mon Sep 17 00:00:00 2001 From: thislooksfun Date: Mon, 25 Oct 2021 20:24:26 -0500 Subject: [PATCH] LibGUI: Remove unnecessary curly braces Not needed for the commit, but I always try to leave the code nicer than I found it. :) --- Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp b/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp index 22c404ddef..77fe344238 100644 --- a/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp +++ b/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp @@ -186,9 +186,8 @@ void GMLAutocompleteProvider::provide_completions(Function)> break; } case AfterIdentifier: - if (last_seen_token && last_seen_token->m_end.line != cursor.line()) { + if (last_seen_token && last_seen_token->m_end.line != cursor.line()) break; - } if (identifier_string == "layout") { Core::ObjectClassRegistration::for_each([&](const Core::ObjectClassRegistration& registration) { if (!registration.is_derived_from(widget_class))