Commit a80f7334 authored by Łukasz Matysiak's avatar Łukasz Matysiak

Move variable closer to where it is used

parent 16006b36
......@@ -1144,8 +1144,6 @@ int Mhwd::launch(int argc, char *argv[])
}
else
{
bool alreadyInList = std::find(configs_.begin(), configs_.end(), config->name_) != configs_.end();
// If force is not set then skip found config
bool skip = false;
if (!arguments_.FORCE)
......@@ -1175,6 +1173,7 @@ int Mhwd::launch(int argc, char *argv[])
device->deviceName_);
}
bool alreadyInList = std::find(configs_.begin(), configs_.end(), config->name_) != configs_.end();
if (!alreadyInList && !skip)
{
configs_.push_back(config->name_);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment