MathLib: Removed condition that is evaluates always to 'false'.

This commit is contained in:
orbitcowboy 2019-05-26 10:46:12 +02:00
parent 02d307a231
commit b3c3ecf926
1 changed files with 1 additions and 1 deletions

View File

@ -1335,7 +1335,7 @@ bool MathLib::isLessEqual(const std::string &first, const std::string &second)
**/
bool MathLib::isNullValue(const std::string &str)
{
if (str.empty() || (!std::isdigit(static_cast<unsigned char>(str[0])) && (str.size() < 1 || (str[0] != '.' && str[0] != '-' && str[0] != '+'))))
if (str.empty() || (!std::isdigit(static_cast<unsigned char>(str[0])) && (str[0] != '.' && str[0] != '-' && str[0] != '+') ))
return false; // Has to be a number
for (size_t i = 0; i < str.size(); i++) {