Fixed error detected by mypy

This commit is contained in:
Khopa 2021-02-05 00:48:35 +01:00
parent df74f7c6c7
commit 07ce20fd29

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