Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/AppConsole.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ public class AppConsole : GLib.Object {
}

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry, I am not familiar with this project and only discovered this issue while using the program. And even after repeating this logic three times, the program still runs normally, so the length of App. grub_device seems insignificant? Even though it was 0, the backup operation was still performed normally, so I used the simplest repair method

}

if (dev == null){
Expand Down