Skip to content

Commit

Permalink
Update MailKitClientSettings.cs (#1531)
Browse files Browse the repository at this point in the history
I removed the duplicate declaration of the `uri` variable. 
Which prevents
```
A local or parameter named 'uri' cannot be declared in this scope because that name is used in an enclosing local scope to define a local or parameter
```
  • Loading branch information
sammychinedu2ky committed Aug 21, 2024
1 parent beae0ee commit 0885cbf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ configuration section.
""");
}

if (Uri.TryCreate(endpoint.ToString(), UriKind.Absolute, out var uri) is false)
if (Uri.TryCreate(endpoint.ToString(), UriKind.Absolute, out uri) is false)
{
throw new InvalidOperationException($"""
The 'ConnectionStrings:<connectionName>' (or 'Endpoint' key in
Expand Down

0 comments on commit 0885cbf

Please sign in to comment.