Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit efe6c06

Browse files
committed
Narrow the scope of the local variable
1 parent 46cf7c7 commit efe6c06

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/GitHub.UI/Controls/FilterTextBox.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,9 @@ static void SelectivelyIgnoreMouseButton(object sender, MouseButtonEventArgs e)
6666

6767
static TextBox FindTextBoxInAncestors(DependencyObject current)
6868
{
69-
TextBox tb;
70-
7169
while (current != null)
7270
{
73-
tb = current as TextBox;
71+
var tb = current as TextBox;
7472
if (tb != null)
7573
return tb;
7674

0 commit comments

Comments
 (0)