Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ef2be1c

Browse files
Small code fix
1 parent af33dce commit ef2be1c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

‎arduino-ide-extension/src/browser/contributions/board-selection.ts‎

Lines changed: 1 addition & 2 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /