Skip to content

Commit 3a9fb77

Browse files
committed
Robocop
1 parent 1538d47 commit 3a9fb77

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/uploadcare/param/authentication_header.rb

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

2525
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)
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)
2828
end
2929

30-
# rubocop:disable Naming/PredicateName
31-
def self.is_blank?(value)
30+
def self.is_(value)
3231
value.nil? || value.empty?
3332
end
34-
# rubocop:enable Naming/PredicateName
3533
end
3634
end
3735
end

0 commit comments

Comments
 (0)