fix ci
Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
parent
26aaa66851
commit
cef08f4452
2 changed files with 5 additions and 3 deletions
|
|
@ -152,6 +152,9 @@ linters:
|
||||||
- gocognit
|
- gocognit
|
||||||
- gocyclo
|
- gocyclo
|
||||||
path: _test\.go$
|
path: _test\.go$
|
||||||
|
- linters:
|
||||||
|
- nolintlint
|
||||||
|
path: 'pkg/tools/(i2c\.go|spi\.go)$'
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
max-issues-per-linter: 0
|
max-issues-per-linter: 0
|
||||||
|
|
|
||||||
|
|
@ -35,9 +35,8 @@ var usbClassToCapability = map[string]string{
|
||||||
}
|
}
|
||||||
|
|
||||||
type USBMonitor struct {
|
type USBMonitor struct {
|
||||||
cmd *exec.Cmd
|
cmd *exec.Cmd
|
||||||
cancel context.CancelFunc
|
mu sync.Mutex
|
||||||
mu sync.Mutex
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewUSBMonitor() *USBMonitor {
|
func NewUSBMonitor() *USBMonitor {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue