Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit f36b5a3

Browse files
Changing funciton order
1 parent 2b571f8 commit f36b5a3

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,19 @@ public void UpdateGitStatus()
293293
}).Start();
294294
}
295295

296+
public void UpdateLocks()
297+
{
298+
var task = GitClient.ListLocks(false);
299+
HookupHandlers(task, false, false);
300+
task.Then((success, locks) =>
301+
{
302+
if (success)
303+
{
304+
GitLocksUpdated?.Invoke(locks);
305+
}
306+
}).Start();
307+
}
308+
296309
private ITask<T> HookupHandlers<T>(ITask<T> task, bool isExclusive, bool filesystemChangesExpected)
297310
{
298311
return new ActionTask(CancellationToken.None, () => {
@@ -331,19 +344,6 @@ private ITask<T> HookupHandlers<T>(ITask<T> task, bool isExclusive, bool filesys
331344
});
332345
}
333346

334-
public void UpdateLocks()
335-
{
336-
var task = GitClient.ListLocks(false);
337-
HookupHandlers(task, false, false);
338-
task.Then((success, locks) =>
339-
{
340-
if (success)
341-
{
342-
GitLocksUpdated?.Invoke(locks);
343-
}
344-
}).Start();
345-
}
346-
347347
private void SetupWatcher()
348348
{
349349
watcher.HeadChanged += WatcherOnHeadChanged;

0 commit comments

Comments
 (0)