From 4b261e45b8e4ea2fe056a6458858089e6c8464ee Mon Sep 17 00:00:00 2001 From: Alexander Ng Date: Fri, 12 Jan 2024 23:54:54 -0800 Subject: [PATCH] remove unecessary declaration of 'creds' variable --- server.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server.go b/server.go index 8292a44..3a01fae 100644 --- a/server.go +++ b/server.go @@ -33,8 +33,7 @@ func main() { log.Printf(cfg.Creds) - var creds socks5.StaticCredentials - creds, err = getCredentials(cfg) + creds, err := getCredentials(cfg) if len(creds) > 0 { cator := socks5.UserPassAuthenticator{Credentials: creds}