Skip to content
Snippets Groups Projects
Commit cc2a7413 authored by Zhou, Wenduo's avatar Zhou, Wenduo
Browse files

Fixed duplicate if error reported by cppcheck. Refs #8881.

parent 17d8683a
No related branches found
No related tags found
No related merge requests found
......@@ -140,11 +140,11 @@ ChopperConfiguration::ChopperConfiguration(const int freq, const std::string& ba
size_t numbanks = m_bankIDs.size();
// Check size
if (m_vecCWL.size() != numbanks || m_vecCWL.size() != numbanks || m_vecCWL.size() != numbanks)
if (m_vecCWL.size() != numbanks || m_mindsps.size() != numbanks || m_maxdsps.size() != numbanks
|| m_maxtofs.size() != numbanks)
{
stringstream errss;
errss << "Default chopper constants have different number of elements. ";
throw runtime_error(errss.str());
std::string errmsg("Default chopper constants have different number of elements. ");
throw runtime_error(errmsg);
}
// Set up index map
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment