Skip to content

Commit

Permalink
Fix annotation in DataTableReaderListnener (#40855)
Browse files Browse the repository at this point in the history
When running the new nullable constructor analysis on runtime we
discovered what appears to be a missing annotation in
`DataTableReaderListener`.

Note: the second `if` check in the constructor seems like dead code.
It's checking for the field to be non-null before ever setting the field
to a value. Probably could be deleted.
  • Loading branch information
jaredpar authored Aug 15, 2020
1 parent 12f8e34 commit 321e5eb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace System.Data
{
internal sealed class DataTableReaderListener
{
private DataTable _currentDataTable;
private DataTable? _currentDataTable;
private bool _isSubscribed;
private readonly WeakReference _readerWeak;

Expand Down

0 comments on commit 321e5eb

Please sign in to comment.