mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-27 13:24:59 +00:00
code_style: general cleanup (#1428)
This commit is contained in:
parent
ae46728bbc
commit
d404f6dbe2
48 changed files with 123 additions and 240 deletions
|
@ -521,7 +521,7 @@ namespace SourceGit
|
|||
private bool TryLaunchAsCoreEditor(IClassicDesktopStyleApplicationLifetime desktop)
|
||||
{
|
||||
var args = desktop.Args;
|
||||
if (args == null || args.Length <= 1 || !args[0].Equals("--core-editor", StringComparison.Ordinal))
|
||||
if (args is not { Length: > 1 } || !args[0].Equals("--core-editor", StringComparison.Ordinal))
|
||||
return false;
|
||||
|
||||
var file = args[1];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue