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
|
||||
- gocyclo
|
||||
path: _test\.go$
|
||||
- linters:
|
||||
- nolintlint
|
||||
path: 'pkg/tools/(i2c\.go|spi\.go)$'
|
||||
|
||||
issues:
|
||||
max-issues-per-linter: 0
|
||||
|
|
|
|||
|
|
@ -35,9 +35,8 @@ var usbClassToCapability = map[string]string{
|
|||
}
|
||||
|
||||
type USBMonitor struct {
|
||||
cmd *exec.Cmd
|
||||
cancel context.CancelFunc
|
||||
mu sync.Mutex
|
||||
cmd *exec.Cmd
|
||||
mu sync.Mutex
|
||||
}
|
||||
|
||||
func NewUSBMonitor() *USBMonitor {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue