mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
_backend will never be null
This commit is contained in:
parent
61cead1867
commit
4e8efe05cc
1 changed files with 7 additions and 7 deletions
|
@ -52,32 +52,32 @@ namespace SourceGit.Native
|
||||||
|
|
||||||
public static void SetupApp(AppBuilder builder)
|
public static void SetupApp(AppBuilder builder)
|
||||||
{
|
{
|
||||||
_backend?.SetupApp(builder);
|
_backend.SetupApp(builder);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static string FindGitExecutable()
|
public static string FindGitExecutable()
|
||||||
{
|
{
|
||||||
return _backend?.FindGitExecutable();
|
return _backend.FindGitExecutable();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenInFileManager(string path, bool select = false)
|
public static void OpenInFileManager(string path, bool select = false)
|
||||||
{
|
{
|
||||||
_backend?.OpenInFileManager(path, select);
|
_backend.OpenInFileManager(path, select);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenBrowser(string url)
|
public static void OpenBrowser(string url)
|
||||||
{
|
{
|
||||||
_backend?.OpenBrowser(url);
|
_backend.OpenBrowser(url);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenTerminal(string workdir)
|
public static void OpenTerminal(string workdir)
|
||||||
{
|
{
|
||||||
_backend?.OpenTerminal(workdir);
|
_backend.OpenTerminal(workdir);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenWithDefaultEditor(string file)
|
public static void OpenWithDefaultEditor(string file)
|
||||||
{
|
{
|
||||||
_backend?.OpenWithDefaultEditor(file);
|
_backend.OpenWithDefaultEditor(file);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void OpenInVSCode(string repo)
|
public static void OpenInVSCode(string repo)
|
||||||
|
@ -97,7 +97,7 @@ namespace SourceGit.Native
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private static readonly IBackend _backend = null;
|
private static readonly IBackend _backend;
|
||||||
|
|
||||||
public static void OpenInFleet(string repo)
|
public static void OpenInFleet(string repo)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue