Commit d8899ba
refactor: improve toClassName function readability and JSDoc completeness
- Replaced substr with slice for better readability and consistency.
- Updated JSDoc to include @param and @returns tags for clarity on function inputs and outputs.
- Simplified the conditional logic by using slice(-5) === 'Error' for a concise and clear check.1 parent 2526505 commit d8899ba
2 files changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
1 | 6 | | |
2 | 7 | | |
3 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
282 | 285 | | |
283 | 286 | | |
284 | 287 | | |
285 | 288 | | |
286 | | - | |
287 | | - | |
288 | | - | |
| 289 | + | |
289 | 290 | | |
0 commit comments