Skip to content

Commit b082180

Browse files
author
John Campion Jr
committed
chore: fix nullable errors
1 parent 2c5ad3c commit b082180

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/MongoFramework.AspNetCore.Identity/MongoIdentityClaims.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public class MongoIdentityUserClaim<TKey> where TKey : IEquatable<TKey>
2121
/// <summary>
2222
/// Gets or sets the claim type for this claim.
2323
/// </summary>
24-
public virtual string? ClaimType { get; set; }
24+
public virtual string ClaimType { get; set; }
2525

2626
/// <summary>
2727
/// Gets or sets the claim value for this claim.
2828
/// </summary>
29-
public virtual string? ClaimValue { get; set; }
29+
public virtual string ClaimValue { get; set; }
3030

3131
/// <summary>
3232
/// Converts the entity into a Claim instance.
@@ -63,12 +63,12 @@ public class MongoIdentityRoleClaim<TKey> where TKey : IEquatable<TKey>
6363
/// <summary>
6464
/// Gets or sets the claim type for this claim.
6565
/// </summary>
66-
public virtual string? ClaimType { get; set; }
66+
public virtual string ClaimType { get; set; }
6767

6868
/// <summary>
6969
/// Gets or sets the claim value for this claim.
7070
/// </summary>
71-
public virtual string? ClaimValue { get; set; }
71+
public virtual string ClaimValue { get; set; }
7272

7373
/// <summary>
7474
/// Constructs a new claim with the type and value.
@@ -83,7 +83,7 @@ public virtual Claim ToClaim()
8383
/// Initializes by copying ClaimType and ClaimValue from the other claim.
8484
/// </summary>
8585
/// <param name="other">The claim to initialize from.</param>
86-
public virtual void InitializeFromClaim(Claim? other)
86+
public virtual void InitializeFromClaim(Claim other)
8787
{
8888
ClaimType = other?.Type;
8989
ClaimValue = other?.Value;

tests/MongoFramework.AspNetCore.Identity.Tests/MongoUserOnlyStoreTests/FindByLogin.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public async Task GetsLoginWithUserIdAndProvider()
6464
var context = new TestContext(GetConnection());
6565
var store = new TestStore(context);
6666

67-
var login = await store.ExposeFindUserLoginAsync(TestIds.UserId1, "provider2", "provider-key").ConfigureAwait(false);
67+
var login = await store.ExposeFindUserLoginAsync(TestIds.UserId1, "provider2", "provider-key");
6868

6969
login.Should().NotBeNull();
7070
login.UserId.Should().Be(TestIds.UserId1);

0 commit comments

Comments
 (0)