remove unecessary declaration of 'creds' variable

This commit is contained in:
Alexander Ng 2024-01-12 23:54:54 -08:00
parent 07b5f76b66
commit 4b261e45b8
No known key found for this signature in database
GPG Key ID: 54CA3BAC2DBFEE4C

View File

@ -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}