code_style: remove unnecessary function call

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo
2026-04-17 17:27:37 +08:00
parent 8395efdd55
commit 9144daeb6f

View File

@@ -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();