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

Commit e4de844

Browse files
Removing unused functionality to disable the native interface in RepositoryWatcher
1 parent 4939060 commit e4de844

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/GitHub.Api/Events/RepositoryWatcher.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ class RepositoryWatcher : IRepositoryWatcher
3030
private readonly CancellationToken cancellationToken;
3131
private readonly NPath[] ignoredPaths;
3232
private readonly ManualResetEventSlim pauseEvent;
33-
private readonly bool disableNative;
3433
private NativeInterface nativeInterface;
3534
private bool running;
3635
private Task task;
@@ -68,8 +67,7 @@ public void Initialize()
6867

6968
try
7069
{
71-
if (!disableNative)
72-
nativeInterface = new NativeInterface(pathsRepositoryPath);
70+
nativeInterface = new NativeInterface(pathsRepositoryPath);
7371
}
7472
catch (Exception ex)
7573
{
@@ -79,12 +77,6 @@ public void Initialize()
7977

8078
public void Start()
8179
{
82-
if (disableNative)
83-
{
84-
Logger.Trace("Native interface is disabled");
85-
return;
86-
}
87-
8880
if (nativeInterface == null)
8981
{
9082
Logger.Warning("NativeInterface is null");

0 commit comments

Comments
 (0)