Skip to content

Commit ed1ea74

Browse files
authored
Prevent misplaced global declaration syntax error (#795)
`global` cannot be the last statement in a block (it is unclear if it is supposed to return nothing or the value).
1 parent 44164a4 commit ed1ea74

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/LinearSolve.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ end
7676
using MKL_jll: libmkl_rt
7777
else
7878
global libmkl_rt
79+
nothing
7980
end
8081

8182
# OpenBLAS_jll is a standard library, but allow users to disable it via preferences
@@ -85,6 +86,7 @@ if Preferences.@load_preference("LoadOpenBLAS_JLL", true)
8586
else
8687
const useopenblas = false
8788
global libopenblas
89+
nothing
8890
end
8991

9092
@reexport using SciMLBase

0 commit comments

Comments
 (0)