Skip to content

Commit

Permalink
Fix automatic boot rom path lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Oct 9, 2024
1 parent 043f1bc commit e492363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func loadBootROM(options *CLIOptions) (*os.File, error) {

if bootRomPath == "" {
for _, romPath := range DEFAULT_BOOT_ROM_PATHS {
if bootRomFile, err := os.Open(romPath); err != nil && !errors.Is(err, os.ErrNotExist) {
if bootRomFile, err = os.Open(romPath); err != nil && !errors.Is(err, os.ErrNotExist) {
return nil, err
} else if bootRomFile != nil {
// yay! we found one!
Expand Down

0 comments on commit e492363

Please sign in to comment.