Make golint fail on errors. (#105)

* make lint fail on errors
* fix lint errors
This commit is contained in:
Sebastian Zagrodzki
2021-11-02 12:52:11 +01:00
committed by GitHub
parent d3bdbe53c8
commit bdb184b25c
4 changed files with 11 additions and 10 deletions

2
usb.go
View File

@@ -246,7 +246,7 @@ func (c *Context) checkOpenDevs() error {
c.mu.Lock()
defer c.mu.Unlock()
if l := len(c.devices); l > 0 {
return fmt.Errorf("Context.Close called while %d Devices are still open, Close may be called only after all previously opened devices were successfuly closed.", l)
return fmt.Errorf("Context.Close called while %d Devices are still open, Close may be called only after all previously opened devices were successfuly closed", l)
}
return nil
}