From 4424b203c2df39791c1a0c1702c83d6254c574b3 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 29 Oct 2018 13:45:18 +0100 Subject: [PATCH] Minor styleguide --- lib/methods/icingachecktask.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/methods/icingachecktask.cpp b/lib/methods/icingachecktask.cpp index 75f301f5f..c5832aebe 100644 --- a/lib/methods/icingachecktask.cpp +++ b/lib/methods/icingachecktask.cpp @@ -175,9 +175,10 @@ void IcingaCheckTask::ScriptFunc(const Checkable::Ptr& checkable, const CheckRes } /* Extract the version number of the running Icinga2 instance. - * We assume that appVersion will allways be something like 'v2.10.1-8-gaebe6da' and we want to extract '2.10.1'. */ + * We assume that appVersion will allways be something like 'v2.10.1-8-gaebe6da' and we want to extract '2.10.1'. + */ int endOfVersionNumber = appVersion.FindFirstOf("-") - 1; - String parsedAppVersion = appVersion.SubStr(1,endOfVersionNumber); + String parsedAppVersion = appVersion.SubStr(1, endOfVersionNumber); /* Return an error if the version is less than specified (optional). */ if (missingIcingaMinVersion.IsEmpty() && !icingaMinVersion.IsEmpty() && Utility::CompareVersion(icingaMinVersion, parsedAppVersion) < 0) {