Skip to content

Commit

Permalink
refactor(sshagent): improve Close func (#4)
Browse files Browse the repository at this point in the history
Signed-off-by: Black-Hole1 <[email protected]>
  • Loading branch information
BlackHole1 authored Jan 17, 2024
1 parent 919952b commit 1220051
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/sshagent/sshagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (s *SSHAgent) Listen() {
}

// Close closes the ssh auth socket.
func (s *SSHAgent) Close() {
func (s *SSHAgent) Close() error {
close(s.done)
_ = s.l.Close()
return s.l.Close()
}

0 comments on commit 1220051

Please sign in to comment.