Skip to content

Commit

Permalink
Fixed duplicate if error reported by cppcheck. Refs #8881.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Feb 11, 2014
1 parent 17d8683 commit cc2a741
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -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
Expand Down

0 comments on commit cc2a741

Please sign in to comment.