chore: ignore read errors
This commit is contained in:
parent
5d0caa88d7
commit
e9ab1ed13d
1 changed files with 2 additions and 2 deletions
|
|
@ -21,7 +21,7 @@ func readSerial() (string, error) {
|
|||
})
|
||||
|
||||
b := make([]byte, 512)
|
||||
n, err := f.Read(b)
|
||||
n, _ := f.Read(b)
|
||||
|
||||
return string(b[:n]), err
|
||||
return string(b[:n]), nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue