lint: fix ineffective assignments (SA4005)

Signed-off-by: Moritz Poldrack <moritz@poldrack.dev>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-08-04 10:33:43 +02:00 committed by Robin Jarry
parent 91981574cc
commit 47b258f709

View file

@ -134,7 +134,6 @@ func (c RemoteConfig) ConnectionString() (string, error) {
pw := strings.TrimSpace(string(output)) pw := strings.TrimSpace(string(output))
u.User = url.UserPassword(u.User.Username(), pw) u.User = url.UserPassword(u.User.Username(), pw)
c.Value = u.String() c.Value = u.String()
c.PasswordCmd = ""
return c.Value, nil return c.Value, nil
} }