Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 43209e0

Browse files
committed
We've already done a cast here.
1 parent 1cb9857 commit 43209e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/GitHub.App/Services/DialogService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public Task<CloneDialogResult> ShowCloneDialog([AllowNull] IConnection connectio
3030
{
3131
var vm = x.View.ViewModel as IBaseCloneViewModel;
3232

33-
((IHasDone)x.View.ViewModel).Done.Subscribe(_ =>
33+
vm.Done.Subscribe(_ =>
3434
{
3535
basePath = vm?.BaseRepositoryPath;
3636
repository = vm?.SelectedRepository;
@@ -58,7 +58,7 @@ public Task<string> ShowReCloneDialog(IRepositoryModel repository)
5858
vm.SelectedRepository = repository;
5959
}
6060

61-
((IHasDone)x.View.ViewModel).Done.Subscribe(_ =>
61+
vm.Done.Subscribe(_ =>
6262
{
6363
basePath = vm?.BaseRepositoryPath;
6464
});

0 commit comments

Comments
 (0)