Fix scanner usage without error handling
This commit is contained in:
parent
d1dfda86ee
commit
084e585c2a
11 changed files with 33 additions and 38 deletions
|
|
@ -94,5 +94,5 @@ func parseInterrupts(r io.Reader) (map[string]interrupt, error) {
|
|||
interrupts[intName] = intr
|
||||
}
|
||||
|
||||
return interrupts, nil
|
||||
return interrupts, scanner.Err()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue