Skip to content

Commit

Permalink
Initialise field directly
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed Feb 12, 2024
1 parent 83e6bb3 commit 8681ca7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions MetadataExtractor/Formats/Tiff/TiffReaderContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,14 @@ public readonly struct TiffReaderContext
/// </summary>
public bool IsBigTiff { get; }

private readonly HashSet<IfdIdentity> _visitedIfds;
private readonly HashSet<IfdIdentity> _visitedIfds = [];

public TiffReaderContext(IndexedReader reader, bool isMotorolaByteOrder, bool isBigTiff)
: this()
{
Reader = reader;
IsMotorolaByteOrder = isMotorolaByteOrder;
IsBigTiff = isBigTiff;

_visitedIfds = new();
}

/// <summary>
Expand Down

0 comments on commit 8681ca7

Please sign in to comment.