Skip to content

Commit

Permalink
Small code style improvement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wouterdek committed Dec 29, 2017
1 parent 14f73d9 commit 876b155
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NodeNetworkToolkit/ValueNode/ValueNodeInputViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Linq;
using System.Reactive;
using System.Reactive.Concurrency;
using System.Reactive.Disposables;
using System.Reactive.Linq;
using System.Reactive.Subjects;
using System.Reactive.Threading.Tasks;
Expand Down Expand Up @@ -102,8 +103,9 @@ public ValueNodeInputViewModel(
ValueChanged = Observable.Create<T>(observer =>
{
observer.OnNext(Value);
return valueChanged.Subscribe(observer.OnNext, observer.OnError, observer.OnCompleted);
});
observer.OnCompleted();
return Disposable.Empty;
}).Concat(valueChanged);
}

private IObservable<T> GenerateConnectedValuesBinding(ValidationAction connectionChangedValidationAction, ValidationAction connectedValueChangedValidationAction)
Expand Down

0 comments on commit 876b155

Please sign in to comment.