Browse Source

Fix SonarLint findings in LogLevel class

Patrick-Christopher Mattulat 1 year ago
parent
commit
856f03cf0a
1 changed files with 1 additions and 1 deletions
  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()