forked from organicmaps/organicmaps
Unnecessary length check removed
Length can not return a value less than 0, therefore this check is not needed.
This commit is contained in:
parent
9e9c44e101
commit
2b4bde05b6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue