Skip to content

Commit 611d177

Browse files
committed
Fix warning
1 parent ceea7d6 commit 611d177

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

test/plotting/test_plotting.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ safe_rm(path) = begin
3030
nothing
3131
end
3232

33-
if !@isdefined ram_wing
33+
let
3434
body_path = joinpath(tempdir(), "ram_air_kite_body.obj")
3535
foil_path = joinpath(tempdir(), "ram_air_kite_foil.dat")
3636
body_src = joinpath(_ram_data_dir, "ram_air_kite_body.obj")
3737
foil_src = joinpath(_ram_data_dir, "ram_air_kite_foil.dat")
3838
cp(body_src, body_path; force=true)
3939
cp(foil_src, foil_path; force=true)
40-
ram_wing = ObjWing(body_path, foil_path;
41-
alpha_range=deg2rad.(-1:1),
42-
delta_range=deg2rad.(-1:1))
40+
global ram_wing = ObjWing(body_path, foil_path;
41+
alpha_range=deg2rad.(-1:1),
42+
delta_range=deg2rad.(-1:1))
4343
end
4444

4545
function create_body_aero()

0 commit comments

Comments
 (0)