mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-27 05:15:05 +00:00
code_style: general cleanup (#1415)
* code_style: general cleanup * code_style: whitespace cleanup
This commit is contained in:
parent
35eda489be
commit
ffac71b15f
89 changed files with 161 additions and 243 deletions
|
@ -128,7 +128,7 @@ namespace SourceGit.Native
|
|||
Microsoft.Win32.RegistryView.Registry64);
|
||||
|
||||
var git = reg.OpenSubKey("SOFTWARE\\GitForWindows");
|
||||
if (git != null && git.GetValue("InstallPath") is string installPath)
|
||||
if (git?.GetValue("InstallPath") is string installPath)
|
||||
{
|
||||
return Path.Combine(installPath, "bin", "git.exe");
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ namespace SourceGit.Native
|
|||
|
||||
break;
|
||||
case "cmd":
|
||||
return "C:\\Windows\\System32\\cmd.exe";
|
||||
return @"C:\Windows\System32\cmd.exe";
|
||||
case "wt":
|
||||
var wtFinder = new StringBuilder("wt.exe", 512);
|
||||
if (PathFindOnPath(wtFinder, null))
|
||||
|
@ -199,8 +199,8 @@ namespace SourceGit.Native
|
|||
finder.VSCode(FindVSCode);
|
||||
finder.VSCodeInsiders(FindVSCodeInsiders);
|
||||
finder.VSCodium(FindVSCodium);
|
||||
finder.Fleet(() => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\Programs\\Fleet\\Fleet.exe");
|
||||
finder.FindJetBrainsFromToolbox(() => $"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\\JetBrains\\Toolbox");
|
||||
finder.Fleet(() => $@"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\Programs\Fleet\Fleet.exe");
|
||||
finder.FindJetBrainsFromToolbox(() => $@"{Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)}\JetBrains\Toolbox");
|
||||
finder.SublimeText(FindSublimeText);
|
||||
finder.TryAdd("Visual Studio", "vs", FindVisualStudio, GenerateCommandlineArgsForVisualStudio);
|
||||
return finder.Founded;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue