Skip to content

Commit 1220051

Browse files
authored
refactor(sshagent): improve Close func (#4)
Signed-off-by: Black-Hole1 <bh@bugs.cc>
1 parent 919952b commit 1220051

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/sshagent/sshagent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (s *SSHAgent) Listen() {
7777
}
7878

7979
// Close closes the ssh auth socket.
80-
func (s *SSHAgent) Close() {
80+
func (s *SSHAgent) Close() error {
8181
close(s.done)
82-
_ = s.l.Close()
82+
return s.l.Close()
8383
}

0 commit comments

Comments
 (0)