Skip to content

Commit 1784861

Browse files
fix GMT CI
1 parent 98cd359 commit 1784861

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/GMT_utils.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,7 @@ function import_topo(limits; file::String="@earth_relief_01m", maxattempts=5)
8888
end
8989
attempt += 1
9090
end
91-
if isempty(G)
92-
error("Could not download GMT topography data")
93-
end
91+
(@isdefined G) || error("Could not download GMT topography data")
9492

9593
# Transfer to GeoData
9694
nx, ny = size(G.z,2), size(G.z,1)

0 commit comments

Comments
 (0)