Do not wrap single lists in :__block__

This commit is contained in:
Eric Meadows-Jönsson
2014-04-27 22:26:14 +02:00
parent 32b8371759
commit d868b4d066
+1 -1
View File
@@ -696,7 +696,7 @@ unwrap_when(Args) ->
Args
end.
to_block([One]) when not is_list(One) -> One;
to_block([One]) -> One;
to_block(Other) -> {'__block__', [], reverse(Other)}.
%% Errors