Unnecessary length check removed

Length can not return a value less than 0, therefore this check is not needed.
This commit is contained in:
HenkGrent 2019-03-12 19:24:31 +01:00 committed by Aleksandr Zatsepin
parent 9e9c44e101
commit 2b4bde05b6

View file

@ -248,7 +248,7 @@ class PlatformSocket
return false;
}
if (data.length < 0 || count < 0 || count > data.length)
if (count < 0 || count > data.length)
{
LOGGER.e(TAG, "Illegal arguments, data.length = " + data.length + ", count = " + count + "\n");
return false;