Skip to content

Commit

Permalink
Fixed the final two comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
irenepsmith committed Sep 23, 2022
1 parent bc67edb commit 4354b40
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,7 @@ public static async Task<bool> VerifyTOTP(

Console.WriteLine($"The status of the token is {response.Status}");

if (response.Status == VerifySoftwareTokenResponseType.SUCCESS)
{
return true;
}
else
{
return false;
}
return response.Status == VerifySoftwareTokenResponseType.SUCCESS;
}

// snippet-end:[cognito.dotnetv3.CognitoBasics.VerifyTOTP]
Expand Down Expand Up @@ -235,7 +228,7 @@ public static async Task ResendConfirmationCode(AmazonCognitoIdentityProviderCli
/// the status.</param>
/// <param name="poolId">The user pool for which we want to check the
/// user's status.</param>
/// <returns>A System Threading Task.</returns>
/// <returns>The UserStatusType object indicating the user's status.</returns>
public static async Task<UserStatusType> GetAdminUser(AmazonCognitoIdentityProviderClient identityProviderClient, string userName, string poolId)
{
var userRequest = new AdminGetUserRequest
Expand Down

0 comments on commit 4354b40

Please sign in to comment.