Skip to content

Commit dd86667

Browse files
committed
Modify parameter name
1 parent 626775e commit dd86667

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Encrypt/AesEncryption/Encrypt.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ private void NullChecks(string data, string secretKey, string iv)
7575
private void NullChecks(string data, string secretKey)
7676
{
7777
if (data == null || data.Length <= 0)
78-
throw new ArgumentNullException("plainText");
78+
throw new ArgumentNullException(nameof(data));
7979

8080
if (secretKey == null || secretKey.Length <= 0)
81-
throw new ArgumentNullException("Key");
81+
throw new ArgumentNullException(nameof(secretKey));
8282
}
8383

8484
//public byte[] AesEncrypt(byte[] data, byte[] key, byte[] iv, ReturnType returnType)

0 commit comments

Comments
 (0)