Fixed error detected by mypy

This commit is contained in:
Khopa 2021-02-05 00:48:35 +01:00 committed by Simon Clark
parent c92b7240eb
commit 4a0ccc4c2f

View File

@ -280,7 +280,7 @@ class LocationFinder:
# Check if on land or sea
p = PointWithHeading.from_point(near.random_point_within(max_range, min_range), random.randint(0, 360))
if is_valid(p):
return
return p
return None