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 a08d7cc commit bd171fdCopy full SHA for bd171fd
Plugins/Flow.Launcher.Plugin.BrowserBookmark/Helper/FaviconHelper.cs
@@ -106,12 +106,13 @@ public static byte[] TryConvertToWebp(byte[] data)
106
{
107
try
108
109
- using (var image = SKImage.FromBitmap(bitmap))
110
- using (var webp = image.Encode(SKEncodedImageFormat.Webp, 65))
111
- {
112
- if (webp != null)
113
- return webp.ToArray();
114
- }
+ using var image = SKImage.FromBitmap(bitmap);
+ if (image is null)
+ return null;
+
+ using var webp = image.Encode(SKEncodedImageFormat.Webp, 65);
+ if (webp != null)
115
+ return webp.ToArray();
116
}
117
finally
118
0 commit comments