diff --git a/snippets/csharp/System/AggregateException/Overview/exception1.cs b/snippets/csharp/System/AggregateException/Overview/exception1.cs index 528965a8608..f151cd96345 100644 --- a/snippets/csharp/System/AggregateException/Overview/exception1.cs +++ b/snippets/csharp/System/AggregateException/Overview/exception1.cs @@ -21,7 +21,7 @@ static async Task Main(string[] args) { await task1; } - catch (UnauthorizedAccessException ae) + catch (UnauthorizedAccessException) { Console.WriteLine("Caught unauthorized access exception-await behavior"); }