PVS: V501 There are identical sub-expressions to the left and to the right

This commit is contained in:
wmayer
2020-07-16 20:47:41 +02:00
parent cbb5f99ade
commit 53a4cb9919

View File

@@ -2991,7 +2991,7 @@ Range RangeExpression::getRange() const
{
auto c1 = stringToAddress(begin.c_str(),true);
auto c2 = stringToAddress(end.c_str(),true);
if(c1.isValid() && c1.isValid())
if(c1.isValid() && c2.isValid())
return Range(c1,c2);
Base::PyGILStateLocker lock;