chore(tpl): drop unnecessary binding

This commit is contained in:
Andrew Mayorov 2023-11-02 15:41:42 +07:00
parent e521a9f5fc
commit f1847fe494
No known key found for this signature in database
GPG Key ID: 2837C62ACFBFED5D
1 changed files with 1 additions and 2 deletions

View File

@ -117,8 +117,7 @@ parse(String, Opts) ->
<<"(" ?RE_PLACEHOLDER "|" ?RE_ESCAPE ")">>
end,
Splits = re:split(String, RE, [{return, binary}, group, trim, unicode]),
Components = lists:flatmap(fun parse_split/1, Splits),
Components.
lists:flatmap(fun parse_split/1, Splits).
parse_split([Part, _PH, Var, <<>>]) ->
% Regular placeholder