File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
src/Kavod.Vba.Compression Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ internal class CompressedContainer
1818 {
1919 private const byte SignatureByteSig = 0x1 ;
2020
21- private readonly List < CompressedChunk > _compressedChunks = new List < CompressedChunk > ( ) ;
21+ private readonly List < CompressedChunk > _compressedChunks = [ ] ;
2222
2323 internal CompressedContainer ( byte [ ] compressedData )
2424 {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ internal LiteralToken(BinaryReader dataReader)
2020
2121 internal LiteralToken ( byte data )
2222 {
23- _data = new [ ] { data } ;
23+ _data = [ data ] ;
2424 }
2525
2626 public void DecompressToken ( BinaryWriter writer )
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ private static IEnumerable<CopyToken> AllPossibleCopyTokens(byte[] uncompressedD
108108 }
109109 }
110110
111- private static IEnumerable < CopyToken > NormalizeCopyTokens ( IEnumerable < CopyToken > copyTokens )
111+ private static List < CopyToken > NormalizeCopyTokens ( IEnumerable < CopyToken > copyTokens )
112112 {
113113 var remainingTokens = RemoveRedundantTokens ( copyTokens ) . ToList ( ) ;
114114
You can’t perform that action at this time.
0 commit comments