Skip to content

Commit 3e43d48

Browse files
authored
Merge pull request erlang#10114 from juhlig/public_key_or
Remove usages of `or` in `public_key` OTP-19744
2 parents 972acbe + 1db0dbd commit 3e43d48

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/public_key/src/public_key.erl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ pem_entry_decode({Asn1Type, CryptDer, {Cipher, Salt}} = PemEntry,
465465
is_binary(CryptDer) andalso
466466
is_list(Cipher) andalso
467467
is_binary(Salt) andalso
468-
((erlang:byte_size(Salt) == 8) or (erlang:byte_size(Salt) == 16)) andalso
468+
((erlang:byte_size(Salt) == 8) orelse (erlang:byte_size(Salt) == 16)) andalso
469469
is_list(Password) ->
470470
do_pem_entry_decode(PemEntry, Password).
471471

@@ -543,7 +543,7 @@ pem_entry_encode(Asn1Type, Entity, {{Cipher, Salt} = CipherInfo,
543543
is_list(Password) andalso
544544
is_list(Cipher) andalso
545545
is_binary(Salt) andalso
546-
((erlang:byte_size(Salt) == 8) or
546+
((erlang:byte_size(Salt) == 8) orelse
547547
(erlang:byte_size(Salt) == 16)) ->
548548
do_pem_entry_encode(Asn1Type, Entity, CipherInfo, Password).
549549

@@ -1733,7 +1733,7 @@ pkix_is_fixed_dh_cert(Cert) when is_binary(Cert) ->
17331733
Reason :: term() .
17341734

17351735
%%--------------------------------------------------------------------
1736-
pkix_issuer_id(#'OTPCertificate'{} = OtpCert, Signed) when (Signed == self) or
1736+
pkix_issuer_id(#'OTPCertificate'{} = OtpCert, Signed) when (Signed == self) orelse
17371737
(Signed == other) ->
17381738
pubkey_cert:issuer_id(OtpCert, Signed);
17391739
pkix_issuer_id(Cert, Signed) when is_binary(Cert) ->

0 commit comments

Comments
 (0)