Skip to content

Commit 78e7ed2

Browse files
authored
Fix Style/PredicateWithKind RuboCop issue (#720)
Fix Style/PredicateWithKind
1 parent 1a1d877 commit 78e7ed2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jwt/x5c_key_finder.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def build_store(root_certificates, crls)
4040
end
4141

4242
def parse_certificates(x5c_header_or_certificates)
43-
if x5c_header_or_certificates.all? { |obj| obj.is_a?(OpenSSL::X509::Certificate) }
43+
if x5c_header_or_certificates.all?(OpenSSL::X509::Certificate)
4444
x5c_header_or_certificates
4545
else
4646
x5c_header_or_certificates.map do |encoded|

0 commit comments

Comments
 (0)