We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 370655b commit 302a280Copy full SHA for 302a280
src/ImageSharp/Formats/Webp/WebpChunkParsingUtils.cs
@@ -370,7 +370,7 @@ public static void ParseOptionalChunks(
370
return;
371
}
372
373
- if (metadata.ExifProfile != null)
+ if (metadata.ExifProfile == null)
374
{
375
ExifProfile exifProfile = new(exifData);
376
@@ -402,10 +402,7 @@ public static void ParseOptionalChunks(
402
403
404
405
- if (metadata.XmpProfile != null)
406
- {
407
- metadata.XmpProfile = new XmpProfile(xmpData);
408
- }
+ metadata.XmpProfile ??= new XmpProfile(xmpData);
409
410
break;
411
default:
0 commit comments