Skip to content

Commit e58c126

Browse files
author
Tobias Amft
committed
Fix rubocop issue
1 parent 603f97e commit e58c126

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ruby_saml/settings.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ def get_all_sp_certs
375375
def validate_sp_certs_params!
376376
has_multi = sp_cert_multi && !sp_cert_multi.empty?
377377
has_pk = private_key && !private_key.empty?
378-
if has_multi && (has_cert?(certificate) || has_cert?(certificate_new) || has_pk)
378+
if has_multi && (cert?(certificate) || cert?(certificate_new) || has_pk)
379379
raise ArgumentError.new("Cannot specify both sp_cert_multi and certificate, certificate_new, private_key parameters")
380380
end
381381
end
382382

383383
# Check if a certificate is present.
384-
def has_cert?(cert)
384+
def cert?(cert)
385385
return true if cert.is_a?(OpenSSL::X509::Certificate)
386386

387387
cert && !cert.empty?

0 commit comments

Comments
 (0)