Skip to content

Commit 0799c12

Browse files
committed
revert: remove array-based string building optimization
The optimization provides no benefit since the function is only called with >1 strings, making the array-based approach unnecessary overhead.
1 parent 1927858 commit 0799c12

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/lib/sort-modifiers.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ export const createSortModifiers = (config: AnyConfig) => {
1515
})
1616

1717
return (modifiers: readonly string[]): string[] => {
18-
// Fast path for common cases
19-
if (modifiers.length <= 1) return [...modifiers]
20-
2118
const result: string[] = []
2219
let currentSegment: string[] = []
2320

0 commit comments

Comments
 (0)