Skip to content

Commit

Permalink
code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Jun 26, 2023
1 parent 36dc7e6 commit aa364c3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/lib/bootloader/bootloader_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,10 @@ def clear_cache
def supported_names
if Yast::Mode.config
# default means bootloader use what it think is the best
if Yast::ProductFeatures.GetBooleanFeature("globals", "enable_systemd_boot")
return BootloaderFactory::SUPPORTED_BOOTLOADERS + [SYSTEMDBOOT, DEFAULT_KEYWORD]
end

return BootloaderFactory::SUPPORTED_BOOTLOADERS + [DEFAULT_KEYWORD]
result = BootloaderFactory::SUPPORTED_BOOTLOADERS.clone
result << SYSTEMDBOOT if Yast::ProductFeatures.GetBooleanFeature("globals", "enable_systemd_boot")
result << DEFAULT_KEYWORD
return result
end

begin
Expand Down

0 comments on commit aa364c3

Please sign in to comment.