Skip to content

Commit a017496

Browse files
committed
Fix ReSharper's "UseNullPropagation"
1 parent dcbe783 commit a017496

File tree

1 file changed

+1
-4
lines changed
  • Ix.NET/Source/System.Interactive/System/Linq/Operators

1 file changed

+1
-4
lines changed

Ix.NET/Source/System.Interactive/System/Linq/Operators/Publish.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,10 +191,7 @@ private IEnumerator<T> GetEnumeratorCore(int i)
191191
}
192192
finally
193193
{
194-
if (_buffer != null)
195-
{
196-
_buffer.Done(i + 1);
197-
}
194+
_buffer?.Done(i + 1);
198195
}
199196
}
200197
}

0 commit comments

Comments
 (0)