Commit 2ccbf0d
committed
refactor: remove needless return in display_message error classification
Address CodeRabbit feedback on PR #725: the first branch in the
display_message() error classification chain had an early return while
the other branches did not. Rather than adding returns to all branches
(which clippy flags as needless_return since they're at the end of the
function), remove the inconsistent one. The else-if chain already
prevents fall-through, making the return redundant.
Both display_message() and display_task_result() now use a consistent
pattern: set self.error and let the else-if chain handle exclusivity.1 parent f50ea55 commit 2ccbf0d
1 file changed
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
1049 | | - | |
1050 | 1049 | | |
1051 | 1050 | | |
1052 | 1051 | | |
| |||
0 commit comments