Commit 3392aad
committed
refactor(cli-internal): remove defensive try/catch in
extractAuthTriggerCfnPermissions
If the function is category 'auth', a Cognito resource must
exist. The try/catch on singleResourceName was hiding a
genuine invariant violation. Let it throw naturally if
something is broken.
---
Prompt: Remove overly defensive try/catch from
extractAuthTriggerCfnPermissions per coding guidelines.1 parent 6aaa53e commit 3392aad
1 file changed
Lines changed: 1 addition & 8 deletions
File tree
- packages/amplify-cli/src/commands/gen2-migration/generate/amplify/function
Lines changed: 1 addition & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
604 | 604 | | |
605 | 605 | | |
606 | 606 | | |
607 | | - | |
608 | | - | |
609 | | - | |
610 | | - | |
611 | | - | |
612 | | - | |
613 | | - | |
614 | | - | |
| 607 | + | |
615 | 608 | | |
616 | 609 | | |
617 | 610 | | |
| |||
0 commit comments