Skip to content

Commit

Permalink
Remove unreachable code (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungam3r authored Jan 22, 2024
1 parent e5cd89f commit aae13dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Destructurama.Attributed/Util/CacheEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ internal struct CacheEntry
public CacheEntry(Func<object, ILogEventPropertyValueFactory, LogEventPropertyValue> destructureFunc)
{
CanDestructure = true;
DestructureFunc = destructureFunc ?? throw new ArgumentNullException(nameof(destructureFunc));
DestructureFunc = destructureFunc;
}

private CacheEntry(bool canDestructure, Func<object, ILogEventPropertyValueFactory, LogEventPropertyValue?> destructureFunc)
{
CanDestructure = canDestructure;
DestructureFunc = destructureFunc ?? throw new ArgumentNullException(nameof(destructureFunc));
DestructureFunc = destructureFunc;
}

public bool CanDestructure { get; }
Expand Down

0 comments on commit aae13dc

Please sign in to comment.