Module: check_mk
Branch: master
Commit: c9e24bb90cd3d3d0f905bb7a9508ebb41cd9c0ad
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c9e24bb90cd3d3…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Tue Nov 22 14:38:52 2016 +0100
clang-formatted.
---
agents/windows/SectionManager.cc | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/agents/windows/SectionManager.cc b/agents/windows/SectionManager.cc
index b6b3d8b..57f8c31 100644
--- a/agents/windows/SectionManager.cc
+++ b/agents/windows/SectionManager.cc
@@ -42,10 +42,12 @@ void SectionManager::addSection(Section *section) {
bool SectionManager::sectionEnabled(const std::string &name) const {
// if no sections were set, assume they are all enabled
- bool is_disabled = _disabled_sections->find(name) !=
_disabled_sections->end();
+ bool is_disabled =
+ _disabled_sections->find(name) != _disabled_sections->end();
- bool is_enabled = !_enabled_sections.wasAssigned() ||
- (_enabled_sections->find(name) != _enabled_sections->end());
+ bool is_enabled =
+ !_enabled_sections.wasAssigned() ||
+ (_enabled_sections->find(name) != _enabled_sections->end());
return !is_disabled && is_enabled;
}