Skip to content

Conversation

@ys928
Copy link

@ys928 ys928 commented Sep 24, 2025

This error will result in meaningless user input multiple times

Copy link
Contributor

@ygerlach ygerlach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This does not seem to catch the case dev.length==0 i guess instead of writing to dev, App.grub_device could be used.


dev = read_stdin_device(device_list, grub_device_default);
if (dev != null) { continue; }
if (dev != null) { break; }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in this comment, couldn't you assign to App.grub_device here and let the loop naturally exit?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants