diff --git a/src/LibraryAugmentedSymbolicRegression.jl b/src/LibraryAugmentedSymbolicRegression.jl index 763c83c6e..dba0f5b82 100644 --- a/src/LibraryAugmentedSymbolicRegression.jl +++ b/src/LibraryAugmentedSymbolicRegression.jl @@ -439,7 +439,7 @@ using ConstructionBase: ConstructionBase as _ include("precompile.jl") redirect_stdout(devnull) do redirect_stderr(devnull) do - do_precompilation(Val(:precompile)) + return do_precompilation(Val(:precompile)) end end diff --git a/src/Parse.jl b/src/Parse.jl index c4932f096..7b948cada 100644 --- a/src/Parse.jl +++ b/src/Parse.jl @@ -90,7 +90,7 @@ function _normalize_expr_string(s::AbstractString) # TODO: Right now, making all variables lowercase. This might not always be desired. s = lowercase(s) s = replace(s, r"\*\*" => "^") - strip(s) + return strip(s) end """ diff --git a/src/Utils.jl b/src/Utils.jl index 4ba6217ae..88bb5d445 100644 --- a/src/Utils.jl +++ b/src/Utils.jl @@ -95,7 +95,7 @@ const vals = ntuple(Val, max_ops) """Return the bottom k elements of x, and their indices.""" function bottomk_fast(x::AbstractVector{T}, k) where {T} - _bottomk_dispatch(x, vals[k])::Tuple{Vector{T},Vector{Int}} + return _bottomk_dispatch(x, vals[k])::Tuple{Vector{T},Vector{Int}} end function _bottomk_dispatch(x::AbstractVector{T}, ::Val{k}) where {T,k}