Skip to content

Commit 545a8a2

Browse files
committed
fix: do not call ConfigureAwait(false) since we need go back to UIThread (#1718)
Signed-off-by: leo <[email protected]>
1 parent c15048b commit 545a8a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ViewModels/ScanRepositories.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ private async Task GetUnmanagedRepositoriesAsync(DirectoryInfo dir, List<string>
129129
var gitDir = Path.Combine(subdir.FullName, ".git");
130130
if (Directory.Exists(gitDir) || File.Exists(gitDir))
131131
{
132-
var test = await new Commands.QueryRepositoryRootPath(subdir.FullName).GetResultAsync().ConfigureAwait(false);
132+
var test = await new Commands.QueryRepositoryRootPath(subdir.FullName).GetResultAsync();
133133
if (test.IsSuccess && !string.IsNullOrEmpty(test.StdOut))
134134
{
135135
var normalized = test.StdOut.Trim().Replace('\\', '/').TrimEnd('/');
@@ -140,7 +140,7 @@ private async Task GetUnmanagedRepositoriesAsync(DirectoryInfo dir, List<string>
140140
continue;
141141
}
142142

143-
var isBare = await new Commands.IsBareRepository(subdir.FullName).GetResultAsync().ConfigureAwait(false);
143+
var isBare = await new Commands.IsBareRepository(subdir.FullName).GetResultAsync();
144144
if (isBare)
145145
{
146146
outs.Add(normalizedSelf);

0 commit comments

Comments
 (0)