diff options
author | thislooksfun <tlf@thislooks.fun> | 2021-10-27 19:53:30 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-11-02 17:53:22 +0100 |
commit | 6c776d267ab0299ba4d68fa4f2f4b9f7b895ce6d (patch) | |
tree | 05b5499f16207c3f83fc55a655ee042408352224 /Userland/Libraries | |
parent | 4e5bf5c1386a5821f5abecddf3901bb2c99bea52 (diff) | |
download | serenity-6c776d267ab0299ba4d68fa4f2f4b9f7b895ce6d.zip |
LibGUI: Remove unnecessary braces
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp b/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp index 1cf61c0a96..570cb6992a 100644 --- a/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp +++ b/Userland/Libraries/LibGUI/GMLAutocompleteProvider.cpp @@ -198,7 +198,7 @@ void GMLAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)> break; } - case InIdentifier: { + case InIdentifier: if (after_token_on_same_line) { // After an identifier, but with extra space // TODO: Maybe suggest a colon? @@ -207,8 +207,7 @@ void GMLAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)> register_properties_and_widgets_matching_pattern(make_fuzzy(identifier_string), identifier_string.length()); break; - } - case AfterClassName: { + case AfterClassName: if (last_seen_token && last_seen_token->m_end.line == cursor.line()) { if (last_seen_token->m_type != GUI::GMLToken::Type::Identifier || last_seen_token->m_end.column != cursor.column()) { // Inside braces, but on the same line as some other stuff (and not the continuation of one!) @@ -219,7 +218,6 @@ void GMLAutocompleteProvider::provide_completions(Function<void(Vector<Entry>)> register_properties_and_widgets_matching_pattern("*", 0u); break; - } case AfterIdentifier: if (last_seen_token && last_seen_token->m_end.line != cursor.line()) break; |