Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
schubi2 committed Apr 30, 2024
1 parent 2bfe9f8 commit aaac87e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lib/bootloader/generic_widgets.rb
Expand Up @@ -192,9 +192,10 @@ def help

def init
current_bl = ::Bootloader::BootloaderFactory.current
if current_bl.is_a?(::Bootloader::SystemdBoot)
case current_bl
when ::Bootloader::SystemdBoot
self.value = current_bl.kernel_params.serialize.gsub(/mitigations=\S+/, "")
elsif current_bl.is_a?(::Bootloader::Grub2Base)
when ::Bootloader::Grub2Base
self.value = current_bl.grub_default.kernel_params.serialize.gsub(/mitigations=\S+/, "")
else
disable
Expand Down

0 comments on commit aaac87e

Please sign in to comment.