Skip to content

Commit 3d2d86c

Browse files
akarnokddanielcweber
authored andcommitted
SingleAsync(): don't init to default values (#692)
1 parent d773b88 commit 3d2d86c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Rx.NET/Source/src/System.Reactive/Linq/Observable/SingleAsync.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ internal sealed class _ : IdentitySink<TSource>
2727
public _(IObserver<TSource> observer)
2828
: base(observer)
2929
{
30-
_value = default(TSource);
31-
_seenValue = false;
3230
}
3331

3432
public override void OnNext(TSource value)
@@ -83,9 +81,6 @@ public _(Func<TSource, bool> predicate, IObserver<TSource> observer)
8381
: base(observer)
8482
{
8583
_predicate = predicate;
86-
87-
_value = default(TSource);
88-
_seenValue = false;
8984
}
9085

9186
public override void OnNext(TSource value)

0 commit comments

Comments
 (0)