Skip to content

Commit

Permalink
do not shadow a local variable
Browse files Browse the repository at this point in the history
removed conflict between block argument and a local variable
  • Loading branch information
lslezak committed Oct 17, 2014
1 parent f7fa947 commit ae94c97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/lib/registration/repo_state.rb
Expand Up @@ -57,4 +57,3 @@ def restore
end
end
end

6 changes: 3 additions & 3 deletions src/lib/registration/sw_mgmt.rb
Expand Up @@ -343,12 +343,12 @@ def self.each_repo(repo_aliases, &block)

repo_aliases.each do |repo_alias|
# find the repository with the alias
repo = all_repos.find do |repo|
repository = all_repos.find do |repo|
Pkg.SourceGeneralData(repo)["alias"] == repo_alias
end

if repo
yield(repo)
if repository
yield(repository)
else
log.warn "Repository '#{repo_alias}' was not found, skipping"
end
Expand Down

0 comments on commit ae94c97

Please sign in to comment.