mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
code_style: remove all IDE warnings
This commit is contained in:
parent
24ca3eaf8c
commit
f4eca45754
79 changed files with 1462 additions and 1378 deletions
|
@ -15,8 +15,8 @@ namespace SourceGit.Native
|
|||
{
|
||||
class Terminal
|
||||
{
|
||||
public string FilePath { get; set; } = string.Empty;
|
||||
public string OpenArgFormat { get; set; } = string.Empty;
|
||||
public string FilePath { get; set; }
|
||||
public string OpenArgFormat { get; set; }
|
||||
|
||||
public Terminal(string exec, string fmt)
|
||||
{
|
||||
|
@ -115,12 +115,15 @@ namespace SourceGit.Native
|
|||
}
|
||||
|
||||
var proc = Process.Start(_xdgOpenPath, $"\"{file}\"");
|
||||
proc.WaitForExit();
|
||||
if (proc != null)
|
||||
{
|
||||
proc.WaitForExit();
|
||||
|
||||
if (proc.ExitCode != 0)
|
||||
App.RaiseException("", $"Failed to open \"{file}\"");
|
||||
if (proc.ExitCode != 0)
|
||||
App.RaiseException("", $"Failed to open \"{file}\"");
|
||||
|
||||
proc.Close();
|
||||
proc.Close();
|
||||
}
|
||||
}
|
||||
|
||||
private string FindExecutable(string filename)
|
||||
|
@ -177,7 +180,7 @@ namespace SourceGit.Native
|
|||
return File.Exists(path) ? path : FindExecutable("fleet");
|
||||
}
|
||||
|
||||
private string _xdgOpenPath = string.Empty;
|
||||
private string _xdgOpenPath = null;
|
||||
private Terminal _terminal = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue