Make golint fail on errors. (#105)
* make lint fail on errors * fix lint errors
This commit is contained in:

committed by
GitHub

parent
d3bdbe53c8
commit
bdb184b25c
2
usb.go
2
usb.go
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user