Skip to content

Commit

Permalink
chore: fixed copy paste error
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Jul 10, 2024
1 parent 79575be commit 9ae7461
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/lib/controllers/CacheController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,19 +164,11 @@ export class CacheController {
dowloadingGridId.set(appId);
const status = await RustInterop.downloadGrid(imageURL, localImagePath, requestTimeout);

// const imageData = await http.fetch<Uint8Array>(imageURL, {
// method: "GET",
// responseType: 3,
// timeout: requestTimeout
// });

// await fs.writeBinaryFile(localImagePath, imageData.data);

dowloadingGridId.set(null);

switch (status) {
case "success":
LogController.warn(`Request for ${imageURL} succeeded.`);
LogController.log(`Request for ${imageURL} succeeded.`);
break;
case "timedOut":
ToastController.showWarningToast("Grid requested timed out");
Expand Down

0 comments on commit 9ae7461

Please sign in to comment.