Commit 4a1ba6e
committed
refactor: use catch without binding for intentionally ignored exceptions
- Change catch (e) to catch to avoid unused variable
- Uses ES2019 optional catch binding syntax
- Maintains debug logging for troubleshooting
- Clear comments explain the intentional exception ignoring
- Should satisfy SonarCloud by handling the catch with logging1 parent 8f91730 commit 4a1ba6e
File tree
2 files changed
+6
-8
lines changed- src/cloudevents/tools/generator
- docs-generator
- readme-generator
2 files changed
+6
-8
lines changedLines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | 154 | | |
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
84 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | 88 | | |
0 commit comments