Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jan 16, 2019
1 parent 3b59591 commit 7a9bb2b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions library/packages/src/lib/y2packager/product_reader.rb
Expand Up @@ -66,8 +66,11 @@ def installation_package_mapping
#
# @return [Array<Product>] Available products
def all_products
linuxrc_special_products = Yast::Linuxrc.InstallInf("specialproduct") ?
Yast::Linuxrc.InstallInf("specialproduct").split(",") : []
if Yast::Linuxrc.InstallInf("specialproduct")
linuxrc_special_products = Yast::Linuxrc.InstallInf("specialproduct").split(",")
else
linuxrc_special_products = []
end

@all_products ||= available_products.map do |prod|
prod_pkg = product_package(prod["product_package"])
Expand Down

0 comments on commit 7a9bb2b

Please sign in to comment.