Skip to content

Commit

Permalink
refactor(configuration): swap '==' for readability
Browse files Browse the repository at this point in the history
  • Loading branch information
strager committed Jan 21, 2024
1 parent 4f0952b commit ac96b53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/quick-lint-js/configuration/configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit ac96b53

Please sign in to comment.