Skip to content

Commit

Permalink
check if sysconfig contain bootloader name
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 10, 2024
1 parent b3328c2 commit f7bbdd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/lib/bootloader/bootloader_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ def proposed
end

def system
bootloader_by_name(Sysconfig.from_system.bootloader)
sysconfig_name = Sysconfig.from_system.bootloader
return nil unless sysconfig_name

bootloader_by_name(sysconfig_name)
end

def current
Expand Down

0 comments on commit f7bbdd4

Please sign in to comment.