From 779c4eb5d07b2aaa768ffd8663462ffcab338ccf Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Mon, 1 Apr 2019 22:46:07 +0200 Subject: Cleanup: remove redundant checks for null dive site The dive_site_has_gps_location() function already checks for the null dive site. Remove redundant checks. Signed-off-by: Berthold Stoeger --- core/worldmap-save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/worldmap-save.c b/core/worldmap-save.c index 27e31f482..a2454ce2b 100644 --- a/core/worldmap-save.c +++ b/core/worldmap-save.c @@ -34,7 +34,7 @@ void writeMarkers(struct membuffer *b, const bool selected_only) continue; } struct dive_site *ds = get_dive_site_for_dive(dive); - if (!ds || !dive_site_has_gps_location(ds)) + if (!dive_site_has_gps_location(ds)) continue; put_degrees(b, ds->location.lat, "temp = new google.maps.Marker({position: new google.maps.LatLng(", ""); put_degrees(b, ds->location.lon, ",", ")});\n"); -- cgit v1.2.3-70-g09d2