mirror of
https://github.com/golang/go.git
synced 2026-06-27 19:30:52 +00:00
internal/poll: omit embedded type field in splicePipe construction
As flagged by the modernize linter. Change-Id: Iba6ea62d617f7e3622773c76a47655f1ad8be0e5 Reviewed-on: https://go-review.googlesource.com/c/go/+/779661 Reviewed-by: Michael Pratt <mpratt@google.com> Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
4136ffed69
commit
c3f7d75877
1 changed files with 1 additions and 1 deletions
|
|
@ -234,7 +234,7 @@ func newPipe() *splicePipe {
|
|||
// although it will require more system calls.
|
||||
unix.Fcntl(fds[0], syscall.F_SETPIPE_SZ, maxSpliceSize)
|
||||
|
||||
return &splicePipe{splicePipeFields: splicePipeFields{rfd: fds[0], wfd: fds[1]}}
|
||||
return &splicePipe{rfd: fds[0], wfd: fds[1]}
|
||||
}
|
||||
|
||||
// destroyPipe destroys a pipe.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue