From 3423f1ef3633257236d01577c9c2ee5f485c8cb7 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Thu, 20 Feb 2025 12:33:21 +0800 Subject: [PATCH] all: Reformat --- ssh_server.go | 2 +- ssh_utils.go | 2 +- diff --git a/ssh_server.go b/ssh_server.go index c1eac471ac49a9bb3ff50e86cc400087ead3d1ae..f6cb54227d0d509b957906ac8b53cec8c85f917f 100644 --- a/ssh_server.go +++ b/ssh_server.go @@ -42,7 +42,7 @@ client_public_key_string = strings.TrimSuffix(string(go_ssh.MarshalAuthorizedKey(client_public_key)), "\n") } clog.Info("Incoming SSH: " + session.RemoteAddr().String() + " " + client_public_key_string + " " + session.RawCommand()) - fmt.Fprintln(session.Stderr(), ansiec.Blue + "Lindenii Forge "+VERSION+", source at "+strings.TrimSuffix(config.HTTP.Root, "/")+"/:/source/" + ansiec.Reset + "\r") + fmt.Fprintln(session.Stderr(), ansiec.Blue+"Lindenii Forge "+VERSION+", source at "+strings.TrimSuffix(config.HTTP.Root, "/")+"/:/source/"+ansiec.Reset+"\r") cmd := session.Command() diff --git a/ssh_utils.go b/ssh_utils.go index 48b25b9241ac0ab1c2349424cfd8834d8cbb81c2..6074dff972110c213222b277cca533dc5694c98d 100644 --- a/ssh_utils.go +++ b/ssh_utils.go @@ -60,5 +60,5 @@ } } func wf_error(w io.Writer, format string, args ...any) { - fmt.Fprintln(w, ansiec.Red + fmt.Sprintf(format, args...) + ansiec.Reset) + fmt.Fprintln(w, ansiec.Red+fmt.Sprintf(format, args...)+ansiec.Reset) } -- 2.48.1