Skip to content

Commit e1981b6

Browse files
waleedlatif1claude
andcommitted
improvement(processing): remove dead try/catch around getHighestPrioritySubscription
getHighestPrioritySubscription catches internally and returns null on error, so the wrapping try/catch was unreachable dead code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dff3f64 commit e1981b6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

apps/sim/lib/execution/preprocessing.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -265,15 +265,7 @@ export async function preprocessExecution(
265265
}
266266

267267
// ========== STEP 4: Get Subscription ==========
268-
let userSubscription: SubscriptionInfo = null
269-
try {
270-
userSubscription = await getHighestPrioritySubscription(actorUserId)
271-
} catch (error) {
272-
logger.error(`[${requestId}] Error fetching subscription`, {
273-
error,
274-
actorUserId,
275-
})
276-
}
268+
const userSubscription = await getHighestPrioritySubscription(actorUserId)
277269

278270
// ========== STEP 5: Check Usage Limits ==========
279271
if (!skipUsageLimits) {

0 commit comments

Comments
 (0)