Use lookup instead of lookup_all

This commit is contained in:
Gaith Hallak 2023-03-08 12:45:51 +03:00
parent 095d0f0d0a
commit 3ef72e9091

View File

@ -389,9 +389,9 @@ to_fcode(Env, [{namespace, _, {con, _, Con}, Decls} | Code]) ->
-spec to_fann(aeso_syntax:ann()) -> fann(). -spec to_fann(aeso_syntax:ann()) -> fann().
to_fann(Ann) -> to_fann(Ann) ->
File = proplists:lookup_all(file, Ann), File = proplists:lookup(file, Ann),
Line = proplists:lookup_all(line, Ann), Line = proplists:lookup(line, Ann),
lists:flatten([File, Line]). [ X || X <- [File, Line], X =/= none ].
-spec get_fann(fexpr()) -> fann(). -spec get_fann(fexpr()) -> fann().
get_fann(FExpr) -> element(2, FExpr). get_fann(FExpr) -> element(2, FExpr).