go/libraries/doltcore/env: environment.go: Do not attach nil PerRPCCredentials when getting credentails from environment.

This commit is contained in:
Aaron Son
2020-05-19 08:44:25 -07:00
parent 183478c3e2
commit 4ab2ab0aea
+3 -1
View File
@@ -653,7 +653,9 @@ func (dEnv *DoltEnv) GetGRPCDialParams(config grpcendpoint.Config) (string, []gr
if err != nil {
return "", nil, err
}
opts = append(opts, grpc.WithPerRPCCredentials(rpcCreds))
if rpcCreds != nil {
opts = append(opts, grpc.WithPerRPCCredentials(rpcCreds))
}
}
return endpoint, opts, nil