Przeglądaj źródła

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 <github@gone.nl>
Sebastiaan van Stijn 5 lat temu
rodzic
commit
fd65fed81b
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      client/hijack.go

+ 2 - 0
client/hijack.go

@@ -87,6 +87,8 @@ func (cli *Client) setupHijackConn(ctx context.Context, req *http.Request, proto
 
 
 	// Server hijacks the connection, error 'connection closed' expected
 	// Server hijacks the connection, error 'connection closed' expected
 	resp, err := clientconn.Do(req)
 	resp, err := clientconn.Do(req)
+
+	//lint:ignore SA1019 for connecting to old (pre go1.8) daemons
 	if err != httputil.ErrPersistEOF {
 	if err != httputil.ErrPersistEOF {
 		if err != nil {
 		if err != nil {
 			return nil, err
 			return nil, err