Skip to content

Commit

Permalink
Fix DeepSource Problems
Browse files Browse the repository at this point in the history
  • Loading branch information
lc6464 committed Nov 30, 2023
1 parent ffa98ff commit 8e12958
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Controllers/Models/Register.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public byte[]? PasswordSalt {
init => _passwordSalt = value;
}

private readonly byte[]? _hmacKey;
private readonly byte[] _hmacKey;

private byte[]? GetHMACKey() => (byte[]?)_hmacKey?.Clone();
private byte[] GetHMACKey() => (byte[])_hmacKey.Clone();

[JsonPropertyName("k")]
public byte[]? HMACKey {
public byte[] HMACKey {
get => GetHMACKey();
init => _hmacKey = value;
}
Expand Down

0 comments on commit 8e12958

Please sign in to comment.