Commit a5597ff8 authored by Millian Poquet's avatar Millian Poquet
Browse files

[code] codacy cosmetics

parent 6e1e44fd
......@@ -259,7 +259,9 @@ int MachineRange::operator[](int index) const
// TODO: avoid O(n) retrieval
auto machine_it = this->elements_begin();
for (int i = 0; i < index; ++i)
{
++machine_it;
}
return *machine_it;
}
......@@ -560,7 +560,9 @@ void JsonProtocolReader::handle_execute_job(int event_number,
// Default mapping
message->allocation->mapping.resize(nb_allocated_resources);
for (int i = 0; i < nb_allocated_resources; ++i)
{
message->allocation->mapping[i] = i;
}
}
// Everything has been parsed correctly, let's inject the message into the simulation.
......
Supports Markdown
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