Skip to content

Commit

Permalink
bug fix when var aliases are used
Browse files Browse the repository at this point in the history
  • Loading branch information
tlienart committed Sep 3, 2021
1 parent 9cfc56d commit 5efd7a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/vars.jl
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ Return `default` (which is `nothing` if not specified) if the variable is not fo
"""
function locvar(name::Union{Symbol,String}; default=nothing)
name = String(name)
name = get(LOCAL_VARS_ALIASES, name, name)
name = get(GLOBAL_VARS_ALIASES, name, name)
return haskey(LOCAL_VARS, name) ? LOCAL_VARS[name].first : default
end

Expand Down

0 comments on commit 5efd7a9

Please sign in to comment.