Merge pull request #6775 from yandex/aku/pvs-warning

Remove a redundant condition (found by PVS Studio).
This commit is contained in:
alexey-milovidov 2019-09-02 17:52:25 +03:00 committed by GitHub
commit 3f5d0ef2a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,7 +332,7 @@ UInt64 geohashesInBox(const GeohashesInBoxPreparedArgs & args, char * out)
}
}
if (items == 0 && args.items_count != 0)
if (items == 0)
{
size_t l = geohashEncodeImpl(args.longitude_min, args.latitude_min, args.precision, out);
out += l;