Skip to content

Commit d2b978a

Browse files
committed
Wrong name
1 parent 3a9fb77 commit d2b978a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/uploadcare/param/authentication_header.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def self.call(options = {})
2323
end
2424

2525
def self.validate_auth_config
26-
raise Uploadcare::Exception::AuthError, 'Public Key is blank.' if is_(Uploadcare.config.public_key)
27-
raise Uploadcare::Exception::AuthError, 'Secret Key is blank.' if is_(Uploadcare.config.secret_key)
26+
raise Uploadcare::Exception::AuthError, 'Public Key is blank.' if blank?(Uploadcare.config.public_key)
27+
raise Uploadcare::Exception::AuthError, 'Secret Key is blank.' if blank?(Uploadcare.config.secret_key)
2828
end
2929

30-
def self.is_(value)
30+
def self.blank?(value)
3131
value.nil? || value.empty?
3232
end
3333
end

0 commit comments

Comments
 (0)