Commit daccba6
authored
refactor: simplify report functions in main.go (#1434)
- Remove redundant error handling patterns in printReport and saveReport
- Directly return report.CreateReport results instead of if-else blocks
- Maintain functionality while improving code readability
Signed-off-by: weidongkl <[email protected]>1 parent d4be287 commit daccba6
1 file changed
+2
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | | - | |
| 297 | + | |
302 | 298 | | |
303 | 299 | | |
304 | 300 | | |
| |||
307 | 303 | | |
308 | 304 | | |
309 | 305 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 306 | + | |
315 | 307 | | |
316 | 308 | | |
317 | 309 | | |
| |||
0 commit comments