File tree 1 file changed +4
-8
lines changed
arduino-ide-extension/src/common/protocol
1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -123,13 +123,7 @@ export interface BoardListItemWithBoard extends BoardListItem {
123
123
readonly board : BoardIdentifier ;
124
124
}
125
125
126
- export function isBoardListItemWithBoard (
127
- arg : unknown
128
- ) : arg is BoardListItemWithBoard {
129
- return isBoardListItem ( arg ) && Boolean ( arg . board ) ;
130
- }
131
-
132
- export function getBoardOrInferredBoard (
126
+ function getBoardOrInferredBoard (
133
127
item : BoardListItem
134
128
) : BoardIdentifier | undefined {
135
129
let board : BoardIdentifier | undefined = undefined ;
@@ -199,7 +193,9 @@ function isInferenceType(arg: unknown): arg is InferenceType {
199
193
* 1. `BoardListItem#board`:
200
194
* 1. Items with `'arduino'` vendor ID in the `fqbn` come before other vendors.
201
195
* 1. Natural compare of the `name`.
202
- * 1. If the `BoardListItem`s do not have a `board` property, `BoardListItem#port#address` natural compare is the fallback.
196
+ * 1. If the `BoardListItem`s do not have a `board` property:
197
+ * 1. Ambiguous boards come before no boards.
198
+ * 1. `BoardListItem#port#address` natural compare is the fallback.
203
199
*/
204
200
function boardListItemComparator (
205
201
left : BoardListItem ,
You can’t perform that action at this time.
0 commit comments