Skip to content

Commit 6953106

Browse files
committed
chore: apply comments from pr
1 parent 76dc413 commit 6953106

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/SamplesApp/UITests.Shared/Windows_UI_Xaml_Controls/WebView/WebView_Title.xaml.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@ public WebView_Title()
1515

1616
public void OnGoClicked(object sender, RoutedEventArgs e)
1717
{
18-
if (Uri.TryCreate(UriInput.Text, UriKind.Absolute, out var uri))
19-
{
20-
Web.Navigate(uri);
21-
}
22-
else
23-
{
24-
throw new ArgumentException("The provided URL is not valid.", nameof(UriInput));
25-
}
18+
var uri = new Uri(UriInput.Text, UriKind.Absolute);
19+
Web.Navigate(uri);
2620
}
2721
}
2822
}

0 commit comments

Comments
 (0)