Permalink
Browse files

rubocop: fixed "Useless private access modifier"

  • Loading branch information...
lslezak committed Nov 20, 2014
1 parent 6c876eb commit 4f4819838723e7ddd7598976db29268226838557
Showing with 5 additions and 8 deletions.
  1. +0 −4 .rubocop.yml
  2. +3 −2 src/lib/registration/connect_helpers.rb
  3. +2 −2 src/lib/registration/downloader.rb
@@ -13,10 +13,6 @@ Lint/Loop:
Lint/RescueException:
Enabled: false

# Offense count: 2
Lint/UselessAccessModifier:
Enabled: false

# Offense count: 3
Lint/UselessAssignment:
Enabled: false
@@ -179,8 +179,6 @@ def self.catch_registration_errors(message_prefix: "", show_update_hint: false,
end
end

private

def self.report_error(msg, api_error)
localized_error = api_error.message

@@ -262,5 +260,8 @@ def self.check_smt_api(e)

e.message.replace(msg)
end

private_class_method :report_error, :error_with_details, :ssl_error_details,
:import_ssl_certificate, :report_ssl_error, :check_smt_api
end
end
@@ -39,8 +39,6 @@ def self.download(file_url, insecure: false)
download_file(file_url, insecure: insecure)
end

private

def self.download_file(file_url, insecure: false, redirection_count: 10)
raise "Redirection limit reached, download aborted" if redirection_count <= 0

@@ -79,5 +77,7 @@ def self.download_file(file_url, insecure: false, redirection_count: 10)
raise DownloadError, "Downloading #{file_url} failed: #{response.message}"
end
end

private_class_method :download_file
end
end

0 comments on commit 4f48198

Please sign in to comment.