diff --git a/PhysicsTools/NanoAOD/plugins/TriggerObjectTableProducer.cc b/PhysicsTools/NanoAOD/plugins/TriggerObjectTableProducer.cc index e72e2b9cab90a..541de6f222d84 100644 --- a/PhysicsTools/NanoAOD/plugins/TriggerObjectTableProducer.cc +++ b/PhysicsTools/NanoAOD/plugins/TriggerObjectTableProducer.cc @@ -95,7 +95,7 @@ class TriggerObjectTableProducer : public edm::stream::EDProducer<> { qualityBits("0"), //will be overwritten from configuration qualityBitsDoc("") //will be created from configuration { - if (doc.size() > 0) { + if (!doc.empty()) { doc = "(" + doc + ")"; } std::vector qualityBitsConfig =