Skip to content

Commit 8581b15

Browse files
committed
Format
1 parent 82cad99 commit 8581b15

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Framework/src/PostProcessingConfig.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ PostProcessingConfig::PostProcessingConfig(const std::string& id, const boost::p
3939
detectorName = config.get<std::string>("qc.postprocessing." + id + ".detectorName", "MISC");
4040
consulUrl = config.get<std::string>("qc.config.consul.url", "");
4141
conditionUrl = config.get<std::string>("qc.config.conditionDB.url", "");
42-
std::unordered_map<std::string, std::string> dbConfig {
43-
{"implementation", config.get<std::string>("qc.config.database.implementation")},
44-
{"host", config.get<std::string>("qc.config.database.host")}
42+
std::unordered_map<std::string, std::string> dbConfig{
43+
{ "implementation", config.get<std::string>("qc.config.database.implementation") },
44+
{ "host", config.get<std::string>("qc.config.database.host") }
4545
};
4646
database = dbConfig;
4747

Framework/src/UserCodeInterface.cxx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,19 @@ void UserCodeInterface::setCustomParameters(const CustomParameters& parameters)
3131
configure();
3232
}
3333

34-
const std::string& UserCodeInterface::getName() const {
34+
const std::string& UserCodeInterface::getName() const
35+
{
3536
return mName;
3637
}
3738

38-
void UserCodeInterface::setName(const std::string& name) {
39+
void UserCodeInterface::setName(const std::string& name)
40+
{
3941
mName = name;
4042
}
4143

4244
void UserCodeInterface::setDatabase(std::unordered_map<std::string, std::string> dbConfig)
4345
{
44-
if(dbConfig.count("implementation") == 0 || dbConfig.count("host") == 0) {
46+
if (dbConfig.count("implementation") == 0 || dbConfig.count("host") == 0) {
4547
ILOG(Error, Devel) << "dbConfig is incomplete, we don't build the user code database instance" << ENDM;
4648
throw std::invalid_argument("Cannot set database in UserCodeInterface");
4749
}

Framework/test/testCheck.cxx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ TEST_CASE("test_check_postprocessing")
144144

145145
TEST_CASE("test_check_activity")
146146
{
147-
Check check({ "QcSkeleton",
147+
Check check({ "QcSkeleton",
148148
"o2::quality_control_modules::skeleton::SkeletonCheck",
149149
"TST",
150150
"",
@@ -154,8 +154,7 @@ TEST_CASE("test_check_activity")
154154
"test",
155155
UpdatePolicyType::OnAny,
156156
{},
157-
true }
158-
);
157+
true });
159158

160159
std::map<std::string, std::shared_ptr<MonitorObject>> moMap{
161160
{ "abcTask/test1", dummyMO("test1") },

0 commit comments

Comments
 (0)