fix(target): fix type check (#2202)

This commit is contained in:
Louis Ruch authored and GitHub committed 2022-06-15 14:14:24 -07:00
1 parent d06ac0d370
commit 618bcb451e
1 file changed
+1 -1
@@ -118,7 +118,7 @@ func staticToWorkerCredential(ctx context.Context, cred credential.Static) (sess
const op = "targets.staticToWorkerCredential"
var workerCred *serverpb.Credential
switch c := cred.(type) {
case credstatic.UsernamePasswordCredential:
case *credstatic.UsernamePasswordCredential:
workerCred = &serverpb.Credential{
Credential: &serverpb.Credential_UserPassword{
UserPassword: &serverpb.UserPassword{