summary refs log tree commit diff
path: root/crypto/src/crmf/EncryptedValueBuilder.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/crmf/EncryptedValueBuilder.cs')
-rw-r--r--crypto/src/crmf/EncryptedValueBuilder.cs10
1 files changed, 1 insertions, 9 deletions
diff --git a/crypto/src/crmf/EncryptedValueBuilder.cs b/crypto/src/crmf/EncryptedValueBuilder.cs
index 3dca9e72c..a056aadf6 100644
--- a/crypto/src/crmf/EncryptedValueBuilder.cs
+++ b/crypto/src/crmf/EncryptedValueBuilder.cs
@@ -146,14 +146,6 @@ namespace Org.BouncyCastle.Crmf
             return new EncryptedValue(intendedAlg, symmAlg, encSymmKey, keyAlg, valueHint, encValue);
         }
 
-        private byte[] PadData(byte[] data)
-        {
-            if (padder != null)
-            {
-                return padder.GetPaddedData(data);
-            }
-
-            return data;
-        }
+        private byte[] PadData(byte[] data) => padder?.GetPaddedData(data) ?? data;
     }
 }