Skip to content

Commit afa25b9

Browse files
committed
Don't do the unneeded spread
1 parent 4e2f825 commit afa25b9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

webviews/components/merge.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ const CHECK_STATE_ORDER: Record<CheckState, number> = {
582582

583583
const StatusCheckDetails = ({ statuses }: { statuses: PullRequestCheckStatus[] }) => {
584584
// Sort statuses to group by state: failure first, then pending, neutral, and success
585-
const sortedStatuses = [...statuses].sort((a, b) => {
585+
const sortedStatuses = statuses.sort((a, b) => {
586586
return CHECK_STATE_ORDER[a.state] - CHECK_STATE_ORDER[b.state];
587587
});
588588

0 commit comments

Comments
 (0)