Skip to content

Commit

Permalink
fix rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Mar 15, 2024
1 parent 9f55f47 commit 261fc59
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/bootloader/systemdboot_widgets.rb
Expand Up @@ -58,11 +58,8 @@ def init
end

def store
if Yast::UI.QueryWidget(Id(:cont_boot), :Value)
systemdboot.menue_timeout = Yast::UI.QueryWidget(Id(:seconds), :Value)
else
systemdboot.menue_timeout = -1
end
cont_boot = Yast::UI.QueryWidget(Id(:cont_boot), :Value)
systemdboot.menue_timeout = cont_boot ? Yast::UI.QueryWidget(Id(:seconds), :Value) : -1
end

private
Expand Down

0 comments on commit 261fc59

Please sign in to comment.