Skip to content

Commit fd65fed

Browse files
committed
client/hijack: suppress SA1019: httputil.ErrPersistEOF is deprecated (staticcheck)
Keeping this code for now to allow connecting to old daemons, but we might want to remove this at some point ``` client/hijack.go:90:12: SA1019: httputil.ErrPersistEOF is deprecated: No longer used. (staticcheck) ``` Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 90c372b commit fd65fed

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

client/hijack.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ func (cli *Client) setupHijackConn(ctx context.Context, req *http.Request, proto
8787

8888
// Server hijacks the connection, error 'connection closed' expected
8989
resp, err := clientconn.Do(req)
90+
91+
//lint:ignore SA1019 for connecting to old (pre go1.8) daemons
9092
if err != httputil.ErrPersistEOF {
9193
if err != nil {
9294
return nil, err

0 commit comments

Comments
 (0)