mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
src: remove shadowed variable in OptionsParser
PR-URL: https://github.com/nodejs/node/pull/46672 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
88baf98fa3
commit
b25ee523ea
1 file changed
+5
-5
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user