refactor: clean up code from comments
This commit is contained in:
parent
4ceed6f301
commit
29bdd3a2a4
8 changed files with 150 additions and 252 deletions
3
ssh.go
3
ssh.go
|
|
@ -8,12 +8,11 @@ import (
|
|||
|
||||
type SSHConnection struct {
|
||||
client *ssh.Client
|
||||
// session *ssh.Session // Session wird für Forwarding nicht direkt benötigt
|
||||
}
|
||||
|
||||
func (s *SSHConnection) Close() error {
|
||||
if s.client != nil {
|
||||
log.Println("DEBUG: Closing SSH client connection.") // Optional Debug Log
|
||||
log.Println("DEBUG: Closing SSH client connection.")
|
||||
return s.client.Close()
|
||||
}
|
||||
return nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue