Remove uneeded try/catch

This commit is contained in:
Dominic Ferrando
2026-06-14 14:55:13 -04:00
parent 5bb762961a
commit ed5abac209
2 changed files with 21 additions and 24 deletions
-4
View File
@@ -130,7 +130,6 @@ export class PrintfulService {
const allPrintfulOrders: Printful.Orders.Order[] = [];
while (true) {
try {
const res = await fetch(
`${env().API_URL}/orders?offset=${offset}`,
{
@@ -153,9 +152,6 @@ export class PrintfulService {
offset = allPrintfulOrders.length;
if (allPrintfulOrders.length >= payload.paging.total) break;
} catch (error) {
throw error;
}
}
return allPrintfulOrders;
+1
View File
@@ -27,6 +27,7 @@ export class SyncService {
static async sync(printfulProductId: number | undefined) {
this.state.isSyncing = true;
// Populate products
const mainPrintfulProducts: MainProduct[] = [];
const webflowProducts: Webflow.Products.ProductAndSkus[] = [];
try {