Skip to content

Commit

Permalink
Use Array.Empty<byte>
Browse files Browse the repository at this point in the history
  • Loading branch information
iamcarbon committed Aug 1, 2020
1 parent a649c25 commit 33ffcb9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SharpCompress/Compressors/Rar/UnpackV2017/unpack_hpp.cs
Expand Up @@ -12,6 +12,7 @@
using System.Collections.Generic;
using static SharpCompress.Compressors.Rar.UnpackV2017.PackDef;
using static SharpCompress.Compressors.Rar.UnpackV2017.UnpackGlobal;
using System;

// TODO: REMOVE THIS... WIP
#pragma warning disable 169
Expand Down Expand Up @@ -271,8 +272,8 @@ internal partial class Unpack
byte *ReadBufMT;
#endif

private byte[] FilterSrcMemory = new byte[0];
private byte[] FilterDstMemory = new byte[0];
private byte[] FilterSrcMemory = Array.Empty<byte>();
private byte[] FilterDstMemory = Array.Empty<byte>();

// Filters code, one entry per filter.
private readonly List<UnpackFilter> Filters = new List<UnpackFilter>();
Expand Down

0 comments on commit 33ffcb9

Please sign in to comment.