mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-01-17 21:15:30 +00:00
Add linter structcheck (#537)
This commit is contained in:
parent
71485a8a3f
commit
fb333a3b1b
3 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,9 @@ linters:
|
||||||
- misspell
|
- misspell
|
||||||
- whitespace
|
- whitespace
|
||||||
- staticcheck
|
- staticcheck
|
||||||
|
- structcheck
|
||||||
- varcheck
|
- varcheck
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,6 @@ type stream struct {
|
||||||
list []*Entry
|
list []*Entry
|
||||||
subs map[*subscriber]struct{}
|
subs map[*subscriber]struct{}
|
||||||
done chan struct{}
|
done chan struct{}
|
||||||
wait sync.WaitGroup
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type log struct {
|
type log struct {
|
||||||
|
|
|
@ -21,7 +21,6 @@ const (
|
||||||
type entry struct {
|
type entry struct {
|
||||||
item *Task
|
item *Task
|
||||||
done chan bool
|
done chan bool
|
||||||
retry int
|
|
||||||
error error
|
error error
|
||||||
deadline time.Time
|
deadline time.Time
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue