fix golint issues in core/breaker (#466)

This commit is contained in:
Kevin Wan
2021-02-17 10:45:55 +08:00
committed by GitHub
parent 6f92daae12
commit 8ebf6750b9
3 changed files with 18 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ func TestBreakersDoWithAcceptable(t *testing.T) {
}
func TestBreakersNoBreakerFor(t *testing.T) {
NoBreakFor("any")
NoBreakerFor("any")
errDummy := errors.New("any")
for i := 0; i < 10000; i++ {
assert.Equal(t, errDummy, GetBreaker("any").Do(func() error {