Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wobba committed Apr 18, 2021
1 parent ecb7e3a commit abd3196
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ private async void RunButton_Click(object sender, RoutedEventArgs e)
string dc = (AuthenticationMethodComboBox.SelectedItem as ComboBoxItem).DataContext as string;
if (AuthenticationTypeComboBox.SelectedIndex == 1 && dc == "SPOAuth2")
{
await AdalLogin(false);
await AdalLogin();
}

SearchMethodType currentSelectedSearchMethodType = CurrentSearchMethodType;
Expand Down Expand Up @@ -480,7 +480,7 @@ private async void LoginButton_Click(object sender, RoutedEventArgs e)
{
try
{
await AdalLogin(true);
await AdalLogin();
if (string.IsNullOrWhiteSpace(_searchQueryRequest.Token)) throw new ApplicationException("No token");
LoggedinLabel.Visibility = Visibility.Visible;
}
Expand All @@ -499,7 +499,7 @@ private async void LoginButton_Click(object sender, RoutedEventArgs e)
}
}

async Task AdalLogin(bool forcePrompt)
async Task AdalLogin()
{
var spUri = new Uri(_searchQueryRequest.SharePointSiteUrl);

Expand Down

0 comments on commit abd3196

Please sign in to comment.