Skip to content

Commit 08230df

Browse files
committed
Code quality
1 parent 7723c44 commit 08230df

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

Flow.Launcher.Infrastructure/Image/ImageLoader.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,10 @@
55
using System.Linq;
66
using System.Threading;
77
using System.Threading.Tasks;
8-
using System.Windows.Documents;
98
using System.Windows.Media;
109
using System.Windows.Media.Imaging;
1110
using Flow.Launcher.Infrastructure.Logger;
1211
using Flow.Launcher.Infrastructure.Storage;
13-
using static Flow.Launcher.Infrastructure.Http.Http;
1412

1513
namespace Flow.Launcher.Infrastructure.Image
1614
{
@@ -28,7 +26,6 @@ public static class ImageLoader
2826
public const int SmallIconSize = 64;
2927
public const int FullIconSize = 256;
3028

31-
3229
private static readonly string[] ImageExtensions = { ".png", ".jpg", ".jpeg", ".gif", ".bmp", ".tiff", ".ico" };
3330

3431
public static async Task InitializeAsync()
@@ -183,7 +180,7 @@ private static async ValueTask<ImageResult> LoadInternalAsync(string path, bool
183180
private static async Task<BitmapImage> LoadRemoteImageAsync(bool loadFullImage, Uri uriResult)
184181
{
185182
// Download image from url
186-
await using var resp = await GetStreamAsync(uriResult);
183+
await using var resp = await Http.Http.GetStreamAsync(uriResult);
187184
await using var buffer = new MemoryStream();
188185
await resp.CopyToAsync(buffer);
189186
buffer.Seek(0, SeekOrigin.Begin);

0 commit comments

Comments
 (0)