Skip to content

Commit aa6f6dc

Browse files
committed
Remove redundant cast
1 parent eb7df79 commit aa6f6dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MetadataExtractor/Formats/Jpeg/JpegSegmentType.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ public static bool CanContainMetadata(this JpegSegmentType type)
222222

223223
/// <summary>Gets JPEG segment types that might contain metadata.</summary>
224224
#if NET5_0_OR_GREATER
225-
public static IReadOnlyList<JpegSegmentType> CanContainMetadataTypes { get; } = Enum.GetValues<JpegSegmentType>().Cast<JpegSegmentType>().Where(type => type.CanContainMetadata()).ToList();
225+
public static IReadOnlyList<JpegSegmentType> CanContainMetadataTypes { get; } = Enum.GetValues<JpegSegmentType>().Where(type => type.CanContainMetadata()).ToList();
226226
#else
227227
public static IReadOnlyList<JpegSegmentType> CanContainMetadataTypes { get; } = Enum.GetValues(typeof(JpegSegmentType)).Cast<JpegSegmentType>().Where(type => type.CanContainMetadata()).ToList();
228228
#endif

0 commit comments

Comments
 (0)