We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1538d47 commit 3a9fb77Copy full SHA for 3a9fb77
1 file changed
lib/uploadcare/param/authentication_header.rb
@@ -23,15 +23,13 @@ def self.call(options = {})
23
end
24
25
def self.validate_auth_config
26
- raise Uploadcare::Exception::AuthError, 'Public Key is blank.' if is_blank?(Uploadcare.config.public_key)
27
- raise Uploadcare::Exception::AuthError, 'Secret Key is blank.' if is_blank?(Uploadcare.config.secret_key)
+ raise Uploadcare::Exception::AuthError, 'Public Key is blank.' if is_(Uploadcare.config.public_key)
+ raise Uploadcare::Exception::AuthError, 'Secret Key is blank.' if is_(Uploadcare.config.secret_key)
28
29
30
- # rubocop:disable Naming/PredicateName
31
- def self.is_blank?(value)
+ def self.is_(value)
32
value.nil? || value.empty?
33
34
- # rubocop:enable Naming/PredicateName
35
36
37
0 commit comments