Explorar o código

Fix SonarLint findings in LogLevel class

Patrick-Christopher Mattulat hai 1 ano
pai
achega
856f03cf0a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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()