summary refs log tree commit diff
path: root/crypto/src/openpgp/PgpCompressedData.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/openpgp/PgpCompressedData.cs')
-rw-r--r--crypto/src/openpgp/PgpCompressedData.cs7
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/src/openpgp/PgpCompressedData.cs b/crypto/src/openpgp/PgpCompressedData.cs
index 346b0b1a1..b06f9bcaa 100644
--- a/crypto/src/openpgp/PgpCompressedData.cs
+++ b/crypto/src/openpgp/PgpCompressedData.cs
@@ -10,14 +10,13 @@ namespace Org.BouncyCastle.Bcpg.OpenPgp
     {
         private readonly CompressedDataPacket data;
 
-		public PgpCompressedData(
-            BcpgInputStream bcpgInput)
+		public PgpCompressedData(BcpgInputStream bcpgInput)
         {
             Packet packet = bcpgInput.ReadPacket();
-            if (!(packet is CompressedDataPacket))
+            if (!(packet is CompressedDataPacket compressedDataPacket))
                 throw new IOException("unexpected packet in stream: " + packet);
 
-            this.data = (CompressedDataPacket)packet;
+            this.data = compressedDataPacket;
         }
 
 		/// <summary>The algorithm used for compression</summary>