Skip to content

Commit

Permalink
Minor code clean up after review. (#567)
Browse files Browse the repository at this point in the history
## Summary

Fixing catch block after reviewing chapter 20
  • Loading branch information
Keboo authored Oct 12, 2023
1 parent 1477f42 commit 3db7da7
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 3db7da7

Please sign in to comment.