Skip to content

Commit 0a01fe6

Browse files
committed
Replace usage of or with andalso in /erts/preloaded
1 parent c191376 commit 0a01fe6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

erts/preloaded/src/prim_zip.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ splitter(Left, Right, 0) ->
614614
{Left, Right};
615615
splitter(<<>>, Right, RelPos) ->
616616
split_iolist(Right, RelPos);
617-
splitter(Left, [A | Right], RelPos) when is_list(A) or is_binary(A) ->
617+
splitter(Left, [A | Right], RelPos) when is_list(A) orelse is_binary(A) ->
618618
Sz = erlang:iolist_size(A),
619619
case Sz > RelPos of
620620
true ->
@@ -638,7 +638,7 @@ skip_iolist(L, Pos) when is_list(L) ->
638638

639639
skipper(Right, 0) ->
640640
Right;
641-
skipper([A | Right], RelPos) when is_list(A) or is_binary(A) ->
641+
skipper([A | Right], RelPos) when is_list(A) orelse is_binary(A) ->
642642
Sz = erlang:iolist_size(A),
643643
case Sz > RelPos of
644644
true ->

0 commit comments

Comments
 (0)