Skip to content

Commit 3ad9f9c

Browse files
fix: add missing error variable for non-unix build constraints (#3538)
* fix: add missing error variable for non-unix build constraints * chore: name "_" for unused parameters --------- Co-authored-by: Elena Kolevska <[email protected]>
1 parent a44df88 commit 3ad9f9c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

internal/pool/conn_check_dummy.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,19 @@
22

33
package pool
44

5-
import "net"
5+
import (
6+
"errors"
7+
"net"
8+
)
69

7-
func connCheck(conn net.Conn) error {
10+
// errUnexpectedRead is placeholder error variable for non-unix build constraints
11+
var errUnexpectedRead = errors.New("unexpected read from socket")
12+
13+
func connCheck(_ net.Conn) error {
814
return nil
915
}
1016

1117
// since we can't check for data on the socket, we just assume there is some
12-
func maybeHasData(conn net.Conn) bool {
18+
func maybeHasData(_ net.Conn) bool {
1319
return true
1420
}

0 commit comments

Comments
 (0)