mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-20 21:01:06 +08:00
code_style: remove unnecessary function call
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -210,7 +210,8 @@ namespace SourceGit.ViewModels
|
||||
|
||||
private string PrepareStringByTarget(string org)
|
||||
{
|
||||
org = org.Replace("${REPO}", GetWorkdir());
|
||||
var repoPath = OperatingSystem.IsWindows() ? _repo.FullPath.Replace("/", "\\") : _repo.FullPath;
|
||||
org = org.Replace("${REPO}", repoPath);
|
||||
|
||||
return Target switch
|
||||
{
|
||||
@@ -223,11 +224,6 @@ namespace SourceGit.ViewModels
|
||||
};
|
||||
}
|
||||
|
||||
private string GetWorkdir()
|
||||
{
|
||||
return OperatingSystem.IsWindows() ? _repo.FullPath.Replace("/", "\\") : _repo.FullPath;
|
||||
}
|
||||
|
||||
private void Run(string args)
|
||||
{
|
||||
var start = new ProcessStartInfo();
|
||||
|
||||
Reference in New Issue
Block a user