Skip to content

Commit

Permalink
rubocop fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Mar 31, 2015
1 parent 839c3e8 commit 2f57e78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/clients/scc.rb
Expand Up @@ -60,7 +60,9 @@ def main
if ENV["MEDIA_ADDON"]
::Registration::SwMgmt.init
repos = Pkg.SourceGetCurrent(true)
media_repo = repos.find {|repo| Pkg.SourceGeneralData(repo)["alias"] == ENV["MEDIA_ADDON"]}
media_repo = repos.find do |repo|
Pkg.SourceGeneralData(repo)["alias"] == ENV["MEDIA_ADDON"]
end

log.error "Using repository: #{media_repo}: #{Pkg.SourceGeneralData(media_repo)}"
return WFM.call("inst_scc", ["register_media_addon", media_repo])
Expand Down
2 changes: 1 addition & 1 deletion src/lib/registration/ui/media_addon_workflow.rb
Expand Up @@ -169,7 +169,7 @@ def select_media_addons
end
end

# no add-on => no registration
# no SCC add-on selected => no registration
Addon.selected.empty? ? :finish : :next
end
end
Expand Down

0 comments on commit 2f57e78

Please sign in to comment.