Skip to content

Commit 992520c

Browse files
committed
chore(main): collapse duplicate code for menu hidden or disabled
1 parent e9cba9d commit 992520c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/main.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,11 @@ fn run() -> Result<()> {
301301
force_boot_menu = true;
302302
}
303303

304-
BootloaderInterfaceTimeout::MenuHidden => {
304+
BootloaderInterfaceTimeout::MenuHidden | BootloaderInterfaceTimeout::MenuDisabled => {
305305
// Hide the boot menu by setting the timeout to zero.
306306
menu_timeout = 0;
307307
}
308308

309-
BootloaderInterfaceTimeout::MenuDisabled => {
310-
// Disable the boot menu by setting the timeout to zero.
311-
menu_timeout = 0;
312-
}
313-
314309
BootloaderInterfaceTimeout::Timeout(timeout) => {
315310
// Configure the timeout to the specified value.
316311
menu_timeout = timeout;

0 commit comments

Comments
 (0)