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

pull/2203/head^2
Louis Ruch 4 years ago committed by GitHub
parent d06ac0d370
commit 618bcb451e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save