mirror of
https://github.com/go-i2p/go-sam-go.git
synced 2025-06-16 05:44:42 -04:00
simplify common some more
This commit is contained in:
@ -67,7 +67,6 @@ func NewSAM(address string) (*SAM, error) {
|
|||||||
|
|
||||||
if err = sendHelloAndValidate(conn, s); err != nil {
|
if err = sendHelloAndValidate(conn, s); err != nil {
|
||||||
logger.WithError(err).Error("Failed to send hello and validate SAM connection")
|
logger.WithError(err).Error("Failed to send hello and validate SAM connection")
|
||||||
conn.Close()
|
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user