Skip to content

Commit 7308430

Browse files
committed
1 parent fa2b3f8 commit 7308430

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/ICSharpCode.SharpZipLib/Zip/ZipEntry.cs

+1-5
Original file line numberDiff line numberDiff line change
@@ -719,17 +719,13 @@ public long Crc
719719
/// <summary>
720720
/// Gets/Sets the compression method.
721721
/// </summary>
722-
/// <remarks>Throws exception when set if the method is not valid as per <see cref="IsCompressionMethodSupported()"/></remarks>
723-
/// <exception cref="NotSupportedException"/>
724722
/// <returns>
725723
/// The compression method for this entry
726724
/// </returns>
727725
public CompressionMethod CompressionMethod
728726
{
729727
get => method;
730-
set => method = !IsCompressionMethodSupported(value)
731-
? throw new NotSupportedException("Compression method not supported")
732-
: value;
728+
set => method = value;
733729
}
734730

735731
/// <summary>

0 commit comments

Comments
 (0)