Skip to content

Commit 8f68565

Browse files
committed
Fix revive lint
Signed-off-by: Spike Curtis <spike@coder.com>
1 parent 42dcab5 commit 8f68565

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

pty/pty_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (p *otherPtyWithProcess) Kill() error {
8585
return p.cmd.Process.Kill()
8686
}
8787

88-
func (p *otherPtyWithProcess) wait() {
88+
func (p *otherPtyWithProcess) waitInternal() {
8989
// The GC can garbage collect the TTY FD before the command
9090
// has finished running. See:
9191
// https://github.com/creack/pty/issues/127#issuecomment-932764012

pty/pty_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func (p *ptyWindows) Close() error {
120120
return nil
121121
}
122122

123-
func (p *ptyWindowsWithProcess) wait() {
123+
func (p *ptyWindowsWithProcess) waitInternal() {
124124
defer close(p.cmdDone)
125125
state, err := p.proc.Wait()
126126
if err != nil {

pty/start_other.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ func startPty(cmd *exec.Cmd) (WithProcess, error) {
4444
cmd: cmd,
4545
cmdDone: make(chan any),
4646
}
47-
go oPty.wait()
47+
go oPty.waitInternal()
4848
return oPty, nil
4949
}

pty/start_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func startPty(cmd *exec.Cmd) (WithProcess, error) {
8888
cmdDone: make(chan any),
8989
proc: process,
9090
}
91-
go pwp.wait()
91+
go pwp.waitInternal()
9292
return pwp, nil
9393
}
9494

0 commit comments

Comments
 (0)