Commit 8f91730
committed
refactor: use void operator for intentional exception ignoring
- Replace NOSONAR suppressions with void operator pattern
- void e explicitly marks exception as intentionally unused
- Maintains debug logging for troubleshooting
- Cleaner approach using language features vs linting suppressions
- Exception is expected in CommonJS/Jest environments1 parent f12ff49 commit 8f91730
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 | 148 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 149 | + | |
| 150 | + | |
153 | 151 | | |
154 | 152 | | |
155 | 153 | | |
| 154 | + | |
156 | 155 | | |
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | 82 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 83 | + | |
| 84 | + | |
87 | 85 | | |
88 | 86 | | |
89 | 87 | | |
| 88 | + | |
90 | 89 | | |
0 commit comments