Commit d59701b
committed
[Refactor] Use early returns in commonParentDirectory
Replace a ternary operator return with a cleaner early-return pattern if there are one or fewer common components, simplifying readability.1 parent 7f41b79 commit d59701b
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
123 | 126 | | |
124 | 127 | | |
125 | 128 | | |
| |||
0 commit comments