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

Commit 2461062

Browse files
committed
Assert that the base path isn't null.
To protect against accidental regressions of the validator logic that ends up calling this.
1 parent 7ae113c commit 2461062

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/GitHub.App/ViewModels/RepositoryCloneViewModel.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ IObservable<Unit> OnCloneRepository(object state)
171171

172172
bool IsAlreadyRepoAtPath(string path)
173173
{
174+
Debug.Assert(path != null);
175+
174176
bool isAlreadyRepoAtPath = false;
175177

176178
if (SelectedRepository != null)

0 commit comments

Comments
 (0)