From ac96b53e56a3467f901d70e3c7d877c6136d7960 Mon Sep 17 00:00:00 2001 From: "Matthew \"strager\" Glazar" Date: Sat, 20 Jan 2024 20:32:36 -0500 Subject: [PATCH] refactor(configuration): swap '==' for readability --- src/quick-lint-js/configuration/configuration.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/quick-lint-js/configuration/configuration.cpp b/src/quick-lint-js/configuration/configuration.cpp index 0cd5b71f37..8af0116bf4 100644 --- a/src/quick-lint-js/configuration/configuration.cpp +++ b/src/quick-lint-js/configuration/configuration.cpp @@ -410,10 +410,10 @@ bool Configuration::should_remove_global_variable(String8_View name) { std::ptrdiff_t group_index = &group - global_groups; // clang-format off const char* prefix = - group.globals == group_globals ? "" : - group.non_shadowable_globals == group_globals ? "non_shadowable_" : - group.non_writable_globals == group_globals ? "non_writable_" : - group.type_only_globals == group_globals ? "type_only_" : + group_globals == group.globals ? "" : + group_globals == group.non_shadowable_globals ? "non_shadowable_" : + group_globals == group.non_writable_globals ? "non_writable_" : + group_globals == group.type_only_globals ? "type_only_" : "???"; // clang-format on std::fprintf(