Skip to content

Commit

Permalink
Minor code change
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcialRosales committed Apr 18, 2023
1 parent 6227dfd commit de4fa24
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,11 @@ expect_closing_var("}" , Acc, _Context) -> { Acc , undefined };
expect_closing_var(_ , _Acc, _Context) -> {"", error}.

resolve_scope_var(Elem, Token, Vhost) ->
ElemAsBinary = list_to_binary(Elem),
case Elem of
"vhost" -> binary_to_list(Vhost);
_ -> binary_to_list(case maps:get(ElemAsBinary, Token, ElemAsBinary) of
_ ->
ElemAsBinary = list_to_binary(Elem),
binary_to_list(case maps:get(ElemAsBinary, Token, ElemAsBinary) of
Value when is_binary(Value) -> Value;
_ -> ElemAsBinary
end)
Expand Down

0 comments on commit de4fa24

Please sign in to comment.