mirror of
https://github.com/labstack/echo.git
synced 2025-01-24 03:16:14 +02:00
remove redundant 0 in make chan (#2101)
* remove 0 in make(chan,0) to fix go-staticcheck problem
This commit is contained in:
parent
4a1ccdfdc5
commit
6cb3b7c046
@ -961,7 +961,7 @@ func TestEchoStartTLSByteString(t *testing.T) {
|
||||
e := New()
|
||||
e.HideBanner = true
|
||||
|
||||
errChan := make(chan error, 0)
|
||||
errChan := make(chan error)
|
||||
|
||||
go func() {
|
||||
errChan <- e.StartTLS(":0", test.cert, test.key)
|
||||
@ -999,7 +999,7 @@ func TestEcho_StartAutoTLS(t *testing.T) {
|
||||
for _, tc := range testCases {
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
e := New()
|
||||
errChan := make(chan error, 0)
|
||||
errChan := make(chan error)
|
||||
|
||||
go func() {
|
||||
errChan <- e.StartAutoTLS(tc.addr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user