Skip to content

Commit

Permalink
rubocop: fixed "Unused method argument"
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Nov 26, 2014
1 parent b538889 commit d14dc19
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions .rubocop.yml
Expand Up @@ -13,11 +13,6 @@ Lint/Loop:
Lint/RescueException:
Enabled: false

# Offense count: 4
# Cop supports --auto-correct.
Lint/UnusedMethodArgument:
Enabled: false

# Offense count: 2
Lint/UselessAccessModifier:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion src/clients/scc_auto.rb
Expand Up @@ -312,7 +312,7 @@ def update_base_product
# @yieldreturn [Boolean, SUSE::Connect::Remote::Product] success flag and
# remote product pair
# @return [Boolean] true on success
def handle_product_service(&block)
def handle_product_service(&_block)
success, product_service = yield
return false unless success

Expand Down
2 changes: 1 addition & 1 deletion src/lib/registration/connect_helpers.rb
Expand Up @@ -53,7 +53,7 @@ class ConnectHelpers
# @param message_prefix [String] Prefix before error like affected product or addon
# @param show_update_hint [Boolean] true if an extra hint for registration update
# should be displayed
def self.catch_registration_errors(message_prefix: "", show_update_hint: false, &block)
def self.catch_registration_errors(message_prefix: "", show_update_hint: false, &_block)
# import the SSL certificate just once to avoid an infinite loop
certificate_imported = false
begin
Expand Down
2 changes: 1 addition & 1 deletion src/lib/registration/registration.rb
Expand Up @@ -144,7 +144,7 @@ def set_registered(remote_product)
end
end

def service_for_product(product, &block)
def service_for_product(product, &_block)
remote_product = product.is_a?(Hash) ?
SUSE::Connect::Remote::Product.new(
:arch => product["arch"],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/registration/sw_mgmt.rb
Expand Up @@ -338,7 +338,7 @@ def self.update_product_renames(renames)
# a helper method for iterating over repositories
# @param repo_aliases [Array<String>] list of repository aliases
# @param block block evaluated for each found repository
def self.each_repo(repo_aliases, &block)
def self.each_repo(repo_aliases, &_block)
all_repos = Pkg.SourceGetCurrent(false)

repo_aliases.each do |repo_alias|
Expand Down

0 comments on commit d14dc19

Please sign in to comment.