Skip to content

Commit

Permalink
src: remove shadowed variable in OptionsParser
Browse files Browse the repository at this point in the history
PR-URL: #46672
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
codebytere authored and targos committed Mar 13, 2023
1 parent 16f6d7e commit c193b25
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/node_options-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,12 @@ void OptionsParser<Options>::Parse(
implied_name.insert(2, "no-");
}
auto implications = implications_.equal_range(implied_name);
for (auto it = implications.first; it != implications.second; ++it) {
if (it->second.type == kV8Option) {
v8_args->push_back(it->second.name);
for (auto imp = implications.first; imp != implications.second; ++imp) {
if (imp->second.type == kV8Option) {
v8_args->push_back(imp->second.name);
} else {
*it->second.target_field->template Lookup<bool>(options) =
it->second.target_value;
*imp->second.target_field->template Lookup<bool>(options) =
imp->second.target_value;
}
}
}
Expand Down

0 comments on commit c193b25

Please sign in to comment.