Skip to content

Commit ed6df48

Browse files
committed
fix
1 parent 486930b commit ed6df48

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

PlotsBase/ext/GastonExt.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -180,13 +180,11 @@ for (mime, term) in (
180180
term = String($term)
181181
if plt.o nothing
182182
filename = tempname() * ".$term"
183-
ret = Gaston.producefigure(plt.o; filename, term = "$term $(gaston_saveopts(plt))")
184-
if ret nothing || ret
185-
while !isfile(filename)
186-
end # avoid race condition with read in next line
187-
write(io, read(filename))
188-
end
189-
isfile(filename) && rm(filename, force = true)
183+
Gaston.producefigure(plt.o; filename, term = "$term $(gaston_saveopts(plt))")
184+
while !isfile(filename)
185+
end # avoid race condition with read in next line
186+
write(io, read(filename))
187+
rm(filename; force = true)
190188
end
191189
return nothing
192190
end

0 commit comments

Comments
 (0)