Skip to content

Commit 5e66765

Browse files
authored
Merge pull request #36 from walterlv/master
_backend will never be null
2 parents 60bcdd6 + 4e8efe0 commit 5e66765

File tree

1 file changed

+7
-7
lines changed
  • src/SourceGit/Native

1 file changed

+7
-7
lines changed

src/SourceGit/Native/OS.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,32 +52,32 @@ static OS()
5252

5353
public static void SetupApp(AppBuilder builder)
5454
{
55-
_backend?.SetupApp(builder);
55+
_backend.SetupApp(builder);
5656
}
5757

5858
public static string FindGitExecutable()
5959
{
60-
return _backend?.FindGitExecutable();
60+
return _backend.FindGitExecutable();
6161
}
6262

6363
public static void OpenInFileManager(string path, bool select = false)
6464
{
65-
_backend?.OpenInFileManager(path, select);
65+
_backend.OpenInFileManager(path, select);
6666
}
6767

6868
public static void OpenBrowser(string url)
6969
{
70-
_backend?.OpenBrowser(url);
70+
_backend.OpenBrowser(url);
7171
}
7272

7373
public static void OpenTerminal(string workdir)
7474
{
75-
_backend?.OpenTerminal(workdir);
75+
_backend.OpenTerminal(workdir);
7676
}
7777

7878
public static void OpenWithDefaultEditor(string file)
7979
{
80-
_backend?.OpenWithDefaultEditor(file);
80+
_backend.OpenWithDefaultEditor(file);
8181
}
8282

8383
public static void OpenInVSCode(string repo)
@@ -97,7 +97,7 @@ public static void OpenInVSCode(string repo)
9797
});
9898
}
9999

100-
private static readonly IBackend _backend = null;
100+
private static readonly IBackend _backend;
101101

102102
public static void OpenInFleet(string repo)
103103
{

0 commit comments

Comments
 (0)