From f1bcd6e27e9cbf541b9f6d76944bb491aede370a Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 10 Dec 2023 03:23:02 +0700 Subject: all: changes based on reports from linter revive Better to fix and follow the reported warnings rather than adding configuration file to add an exception. --- ssh_client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ssh_client.go') diff --git a/ssh_client.go b/ssh_client.go index 519a19c..766e40b 100644 --- a/ssh_client.go +++ b/ssh_client.go @@ -30,12 +30,12 @@ type sshClient struct { dirTmp string } -// newSshClient create new clients using the SSH config section. +// newSSHClient create new clients using the SSH config section. // // Once connection established, the client create new temporary directory on // server at dirTmp for sudoGet or sudoPut operations. -func newSshClient(req *ExecRequest, section *config.Section, dirTmp string) (sshc *sshClient, err error) { - var logp = `newSshClient` +func newSSHClient(req *ExecRequest, section *config.Section, dirTmp string) (sshc *sshClient, err error) { + var logp = `newSSHClient` req.mlog.Outf(`--- SSH connection: %s@%s:%s`, section.User(), section.Hostname(), section.Port()) -- cgit v1.3