Skip to content

Commit

Permalink
Minor code clean up after review.
Browse files Browse the repository at this point in the history
  • Loading branch information
Keboo authored Oct 7, 2023
1 parent 1477f42 commit 5f5aaba
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Chapter20/Listing20.02.AsynchronousWebRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static void Main(string[] args)
return true;
});
}
catch (WebException)
catch (HttpRequestException)
{
#region EXCLUDE
throw;
Expand All @@ -83,12 +83,6 @@ public static void Main(string[] args)
throw;
#endregion EXCLUDE
}
catch (NotSupportedException)
{
#region EXCLUDE
throw;
#endregion EXCLUDE
}
}
}

Expand Down

0 comments on commit 5f5aaba

Please sign in to comment.