From: Michael Friedrich Date: Mon, 29 Oct 2018 12:45:18 +0000 (+0100) Subject: Minor styleguide X-Git-Tag: v2.11.0-rc1~308^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3d45d0bcf6d5f993cdde270a1be6f82e53280395;p=icinga2 Minor styleguide --- 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) {