No need for lambda here

Co-authored-by: Bruno Windels <bruno@windels.cloud>
This commit is contained in:
R Midhun Suresh 2021-08-06 16:04:51 +05:30 committed by GitHub
parent 86ddfc1e9e
commit 3ff55204f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ export class RightPanelViewModel extends ViewModel {
_hookUpdaterToSegment(segment, viewmodel, argCreator, failCallback) {
const observable = this.navigation.observe(segment);
const updater = this._setupUpdater(segment, viewmodel, argCreator, failCallback);
this.track(observable.subscribe(() => updater()));
this.track(observable.subscribe(updater));
}
_setupUpdater(segment, viewmodel, argCreator, failCallback) {