Skip to content

Commit

Permalink
Remove duplicate credential instantiation line in ACS Email README (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
scottaddie authored Jul 18, 2024
1 parent f23ba3a commit 2b088b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions sdk/communication/Azure.Communication.Email/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ Alternatively, Email clients can also be authenticated using a valid token crede

```C# Snippet:Azure_Communication_Email_CreateEmailClientWithToken
string endpoint = "<endpoint_url>";
TokenCredential tokenCredential = new DefaultAzureCredential();
tokenCredential = new DefaultAzureCredential();
var tokenCredential = new DefaultAzureCredential();
EmailClient emailClient = new EmailClient(new Uri(endpoint), tokenCredential);
```
## Examples
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,10 @@ public EmailClient CreateSmsClientWithToken()
}
else
{
tokenCredential = new DefaultAzureCredential();
#region Snippet:Azure_Communication_Email_CreateEmailClientWithToken
//@@ string endpoint = "<endpoint_url>";
//@@ TokenCredential tokenCredential = new DefaultAzureCredential();
/*@@*/
tokenCredential = new DefaultAzureCredential();
//@@ var tokenCredential = new DefaultAzureCredential();
//@@ EmailClient emailClient = new EmailClient(new Uri(endpoint), tokenCredential);
#endregion Snippet:Azure_Communication_Email_CreateEmailClientWithToken
}
Expand Down

0 comments on commit 2b088b9

Please sign in to comment.