Skip to content

Commit 6939403

Browse files
committed
code_style: remove unused variable
Signed-off-by: leo <[email protected]>
1 parent e3d6ee0 commit 6939403

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/ViewModels/Repository.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -834,7 +834,6 @@ public void RefreshCommits()
834834
if (_enableFirstParentInHistories)
835835
builder.Append("--first-parent ");
836836

837-
var invalidFilters = new List<Models.Filter>();
838837
var filters = _settings.BuildHistoriesFilter();
839838
if (string.IsNullOrEmpty(filters))
840839
builder.Append("--branches --remotes --tags");
@@ -2129,7 +2128,7 @@ private BranchTreeNode FindBranchNode(List<BranchTreeNode> nodes, string path)
21292128
if (node.Path.Equals(path, StringComparison.Ordinal))
21302129
return node;
21312130

2132-
if (path.StartsWith(node.Path, StringComparison.Ordinal))
2131+
if (path!.StartsWith(node.Path, StringComparison.Ordinal))
21332132
{
21342133
var founded = FindBranchNode(node.Children, path);
21352134
if (founded != null)

0 commit comments

Comments
 (0)