mirror of
https://github.com/rwinkhart/go-winio.git
synced 2026-10-27 05:29:58 -04:00
remove newOpenError
This commit is contained in:
1 parent
498f830763
commit
6e309c3584
1 file changed
-7
@@ -177,13 +177,6 @@ func DialPipe(path string, timeout *time.Duration) (net.Conn, error) {
|
||||
return conn, err
|
||||
}
|
||||
|
||||
func newOpenError(path *string, err error) error {
|
||||
if err != nil {
|
||||
return &os.PathError{Err: err, Op: "open", Path: *path}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// DialPipeContext attempts to connect to a named pipe by `path` until `ctx`
|
||||
// cancellation or timeout.
|
||||
func DialPipeContext(ctx context.Context, path string) (net.Conn, error) {
|
||||
|
||||
Reference in new issue
Block a user