1
0
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:
eric 2022-02-23 15:22:20 +08:00 committed by GitHub
parent 4a1ccdfdc5
commit 6cb3b7c046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)