Pārlūkot izejas kodu

Fix SonarLint findings in LogLevel class

Patrick-Christopher Mattulat 1 gadu atpakaļ
vecāks
revīzija
856f03cf0a
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      source/ls-std/io/logging/LogLevel.cpp

+ 1 - 1
source/ls-std/io/logging/LogLevel.cpp

@@ -95,7 +95,7 @@ LogLevelValue LogLevel::_getValueFromString(const string &_value)
   const auto &iterator = find_if(this->level.begin(), this->level.end(), [&_value](const pair<LogLevelValue, string> &_logLevelString) { return _logLevelString.second == _value; });
   const auto &[logLevelEnumValue, logLevelStringRepresentation] = *iterator;
 
-  return iterator != level.end() ? (LogLevelValue) logLevelEnumValue : LogLevelValue{};
+  return iterator != level.end() ? logLevelEnumValue : LogLevelValue{};
 }
 
 void LogLevel::_init()