Skip to content

Commit

Permalink
simplification from review
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Nov 5, 2019
1 parent 04653ac commit b36abce
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib/update/clients/inst_update_partition_auto.rb
Expand Up @@ -113,12 +113,7 @@ def target_system_candidate
def target_distro
if Y2Packager::MediumType.online?
control_products = Y2Packager::ProductControlProduct.products
if control_products.empty?
""
else
# curently all products have the same "register_target" value
control_products.first.register_target || ""
end
control_products.first&.register_target || ""
else
target_distribution
end
Expand Down

0 comments on commit b36abce

Please sign in to comment.