Commit d33d617
refactor: use optional chaining for concise error message parsing
Refactors lineColMatch array access to use optional chaining (?.[])
instead of logical AND (&&) operators, making the code more concise
and easier to read. This addresses SonarQube code quality suggestions
while maintaining identical functionality.
Changes:
- Line 233: lineColMatch ? lineColMatch[1] → lineColMatch?.[1]
- Line 234: lineColMatch && lineColMatch[2] → lineColMatch?.[2]1 parent c2f28f0 commit d33d617
1 file changed
Lines changed: 2 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
| 233 | + | |
| 234 | + | |
236 | 235 | | |
237 | 236 | | |
238 | 237 | | |
| |||
0 commit comments