Commit 1e507e2
committed
refactor: simplify pop_tail by reusing remove method
- Replace manual pointer logic in pop_tail with a call to self.remove()
- Adhere to DRY (Don't Repeat Yourself) principles
- Reduce code duplication and improve maintainability1 parent 6e4d93a commit 1e507e2
1 file changed
Lines changed: 1 addition & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
| 47 | + | |
54 | 48 | | |
55 | 49 | | |
56 | 50 | | |
| |||
0 commit comments