*: pass golangci-lint
This commit is contained in:
parent
f8aa553d5c
commit
d4e425a251
2 changed files with 5 additions and 2 deletions
|
@ -6,6 +6,10 @@ output:
|
||||||
linters-settings:
|
linters-settings:
|
||||||
goimports:
|
goimports:
|
||||||
local-prefixes: "github.com/chihaya/chihaya"
|
local-prefixes: "github.com/chihaya/chihaya"
|
||||||
|
staticcheck:
|
||||||
|
checks:
|
||||||
|
- "all"
|
||||||
|
- "-SA1019" # Allow netErr.Temporary
|
||||||
gosec:
|
gosec:
|
||||||
excludes:
|
excludes:
|
||||||
- "G404" # Allow the usage of math/rand
|
- "G404" # Allow the usage of math/rand
|
||||||
|
|
|
@ -21,8 +21,7 @@ func TestStartStopRaceIssue437(t *testing.T) {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
errC := fe.Stop()
|
errC := fe.Stop()
|
||||||
errs := <-errC
|
if errs := <-errC; len(errs) != 0 {
|
||||||
if len(errs) != 0 {
|
|
||||||
t.Fatal(errs[0])
|
t.Fatal(errs[0])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue