Skip to content

Commit

Permalink
Ignore performance concerns on the path to an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Nov 8, 2023
1 parent 8fc5d81 commit 9ecce26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ROOTFrameWriter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ void ROOTFrameWriter::writeFrame(const podio::Frame& frame, const std::string& c
auto* coll = frame.getCollectionForWrite(name);
if (!coll) {
// Make sure all collections that we want to write are actually available
// NOLINTNEXTLINE(performance-inefficient-string-concatenation)
throw std::runtime_error("Collection '" + name + "' in category '" + category + "' is not available in Frame");
}
collections.emplace_back(name, const_cast<podio::CollectionBase*>(coll));
Expand Down

0 comments on commit 9ecce26

Please sign in to comment.