From d124cc04c98df6878335632218bca344c3a87727 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Wed, 4 Nov 2020 12:38:07 +0000 Subject: [PATCH] Remove unnecessary calls to fmt.Sprint --- ssh.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssh.go b/ssh.go index 9e409bcfd..b56dcb564 100644 --- a/ssh.go +++ b/ssh.go @@ -543,12 +543,12 @@ func sshCreateTunnel(ifce *Interface, fs interface{}, a []string, w sshd.StringW hostInfo, _ := ifce.hostMap.QueryVpnIP(uint32(vpnIp)) if hostInfo != nil { - return w.WriteLine(fmt.Sprintf("Tunnel already exists")) + return w.WriteLine("Tunnel already exists") } hostInfo, _ = ifce.handshakeManager.pendingHostMap.QueryVpnIP(uint32(vpnIp)) if hostInfo != nil { - return w.WriteLine(fmt.Sprintf("Tunnel already handshaking")) + return w.WriteLine("Tunnel already handshaking") } var addr *udpAddr