mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-06-15 08:17:05 +00:00
style: add braces around single-statement bodies
- wrap single-statement control-flow bodies in braces - clang-tidy readability-braces-around-statements https://clang.llvm.org/extra/clang-tidy/checks/readability/braces-around-statements.html
This commit is contained in:
committed by
Dennis Klein
parent
e23c4d8ff1
commit
7a44c5e19e
@@ -17,7 +17,9 @@ auto PluginServices::ChangeDeviceState(const string& controller, const DeviceSta
|
||||
{
|
||||
lock_guard<mutex> lock{fDeviceControllerMutex};
|
||||
|
||||
if (!fDeviceController) fDeviceController = controller;
|
||||
if (!fDeviceController) {
|
||||
fDeviceController = controller;
|
||||
}
|
||||
|
||||
if (fDeviceController == controller) {
|
||||
return fDevice.ChangeState(next);
|
||||
|
||||
Reference in New Issue
Block a user