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

Commit e5056f1

Browse files
Merge branch 'fixes/repository-manager-warning' into enhancements/git-client-cache
2 parents 06d801a + dc6fccb commit e5056f1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/GitHub.Api/Git/RepositoryManager.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ class RepositoryManager : IRepositoryManager
9595
private readonly IGitClient gitClient;
9696
private readonly IPlatform platform;
9797
private readonly IRepositoryPathConfiguration repositoryPaths;
98-
private readonly ITaskManager taskManager;
9998
private readonly IRepositoryWatcher watcher;
10099

101100
private bool isBusy;
@@ -111,13 +110,12 @@ class RepositoryManager : IRepositoryManager
111110
public event Action<string, string> OnRemoteBranchRemoved;
112111
public event Action OnRepositoryUpdated;
113112

114-
public RepositoryManager(IPlatform platform, ITaskManager taskManager, IGitConfig gitConfig,
113+
public RepositoryManager(IPlatform platform, IGitConfig gitConfig,
115114
IRepositoryWatcher repositoryWatcher, IGitClient gitClient,
116115
IRepositoryPathConfiguration repositoryPaths)
117116
{
118117
this.repositoryPaths = repositoryPaths;
119118
this.platform = platform;
120-
this.taskManager = taskManager;
121119
this.gitClient = gitClient;
122120
this.watcher = repositoryWatcher;
123121
this.config = gitConfig;
@@ -134,7 +132,7 @@ public static RepositoryManager CreateInstance(IPlatform platform, ITaskManager
134132

135133
var repositoryWatcher = new RepositoryWatcher(platform, repositoryPathConfiguration, taskManager.Token);
136134

137-
return new RepositoryManager(platform, taskManager, gitConfig, repositoryWatcher,
135+
return new RepositoryManager(platform, gitConfig, repositoryWatcher,
138136
gitClient, repositoryPathConfiguration);
139137
}
140138

0 commit comments

Comments
 (0)