Skip to content

Commit

Permalink
remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 22, 2021
1 parent c5fe398 commit 7010985
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/lib/autoinstall/clients/inst_autoinit.rb
@@ -1,6 +1,5 @@
require "autoinstall/autosetup_helpers"
require "autoinstall/importer"
require "y2packager/medium_type"
require "y2packager/product_spec"
require "autoinstall/ask/runner"
require "autoinstall/ask/stage"
Expand Down Expand Up @@ -131,8 +130,7 @@ def run
Yast::WFM.CallFunction("fcoe-client_auto", ["Write"])
end

if !(Y2Packager::MediumType.offline? || Yast::AutoinstFunctions.selected_product ||
Yast::Mode.autoupgrade)
if !(Yast::AutoinstFunctions.selected_product || Yast::Mode.autoupgrade)
msg = _("None or wrong base product has been defined " \
"in the AutoYaST configuration file. " \
"Please check the <b>products</b> entry in the <b>software</b> section.<br><br>" \
Expand Down

0 comments on commit 7010985

Please sign in to comment.