code_style: remove unused variable

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2024-11-24 10:20:40 +08:00
parent e3d6ee0f40
commit 693940368b
No known key found for this signature in database

View file

@ -834,7 +834,6 @@ namespace SourceGit.ViewModels
if (_enableFirstParentInHistories) if (_enableFirstParentInHistories)
builder.Append("--first-parent "); builder.Append("--first-parent ");
var invalidFilters = new List<Models.Filter>();
var filters = _settings.BuildHistoriesFilter(); var filters = _settings.BuildHistoriesFilter();
if (string.IsNullOrEmpty(filters)) if (string.IsNullOrEmpty(filters))
builder.Append("--branches --remotes --tags"); builder.Append("--branches --remotes --tags");
@ -2129,7 +2128,7 @@ namespace SourceGit.ViewModels
if (node.Path.Equals(path, StringComparison.Ordinal)) if (node.Path.Equals(path, StringComparison.Ordinal))
return node; return node;
if (path.StartsWith(node.Path, StringComparison.Ordinal)) if (path!.StartsWith(node.Path, StringComparison.Ordinal))
{ {
var founded = FindBranchNode(node.Children, path); var founded = FindBranchNode(node.Children, path);
if (founded != null) if (founded != null)