summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpLiteralData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp/PgpLiteralData.cs')
-rw-r--r--crypto/src/openpgp/PgpLiteralData.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/src/openpgp/PgpLiteralData.cs b/crypto/src/openpgp/PgpLiteralData.cs
index d1b7b4a4d..92fafe657 100644
--- a/crypto/src/openpgp/PgpLiteralData.cs
+++ b/crypto/src/openpgp/PgpLiteralData.cs
@@ -18,14 +18,13 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
 
 		private readonly LiteralDataPacket data;
 
-		public PgpLiteralData(
-            BcpgInputStream bcpgInput)
+		public PgpLiteralData(BcpgInputStream bcpgInput)
         {
             Packet packet = bcpgInput.ReadPacket();
-            if (!(packet is LiteralDataPacket))
+            if (!(packet is LiteralDataPacket literalDataPacket))
                 throw new IOException("unexpected packet in stream: " + packet);
 
-            this.data = (LiteralDataPacket)packet;
+            this.data = literalDataPacket;
         }
 
 		/// <summary>The format of the data stream - Binary or Text</summary>