Skip to content

Commit ef2be1c

Browse files
committed
Small code fix
1 parent af33dce commit ef2be1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: arduino-ide-extension/src/browser/contributions/board-selection.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,7 @@ PID: ${PID}`;
278278

279279
// First we show addresses with recognized boards connected,
280280
// then all the rest.
281-
const sortedIDs = Object.keys(ports);
282-
sortedIDs.sort((left: string, right: string): number => {
281+
const sortedIDs = Object.keys(ports).sort((left: string, right: string): number => {
283282
const [, leftBoards] = ports[left];
284283
const [, rightBoards] = ports[right];
285284
return rightBoards.length - leftBoards.length;

0 commit comments

Comments
 (0)