Skip to content

Commit d314aa1

Browse files
Apply suggestions from code review
Co-authored-by: José Valim <[email protected]>
1 parent 40f1453 commit d314aa1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/elixir/src/elixir_parser.yrl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ build_map_update(Left, {Pipe, Struct, Map}, Right, Extra) ->
778778

779779
%% Blocks
780780

781-
build_block(Exprs) -> build_block(Exprs, {}).
781+
build_block(Exprs) -> build_block(Exprs, none).
782782

783783
build_block([{unquote_splicing, _, [_]}]=Exprs, BeforeAfter) ->
784784
{'__block__', block_meta(BeforeAfter), Exprs};
@@ -805,7 +805,7 @@ build_block([Expr], _BeforeAfter) ->
805805
build_block(Exprs, BeforeAfter) ->
806806
{'__block__', block_meta(BeforeAfter), Exprs}.
807807

808-
block_meta({}) -> [];
808+
block_meta(none) -> [];
809809
block_meta({Before, After}) -> meta_from_token_with_closing(Before, After).
810810

811811
%% Newlines

0 commit comments

Comments
 (0)