Skip to content

Commit 0e9c3ad

Browse files
committed
Remove useless protocol check in Port sameAs function
1 parent d5ca86f commit 0e9c3ad

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

arduino-ide-extension/src/common/protocol/boards-service.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -262,27 +262,9 @@ export namespace Port {
262262
right: Port | string | undefined
263263
) {
264264
if (left && right) {
265-
if (left.protocol !== 'serial') {
266-
console.log(
267-
`Unexpected protocol for 'left' port: ${JSON.stringify(
268-
left
269-
)}. Ignoring 'protocol', comparing 'addresses' with ${JSON.stringify(
270-
right
271-
)}.`
272-
);
273-
}
274265
if (typeof right === 'string') {
275266
return left.address === right;
276267
}
277-
if (right.protocol !== 'serial') {
278-
console.log(
279-
`Unexpected protocol for 'right' port: ${JSON.stringify(
280-
right
281-
)}. Ignoring 'protocol', comparing 'addresses' with ${JSON.stringify(
282-
left
283-
)}.`
284-
);
285-
}
286268
return left.address === right.address;
287269
}
288270
return false;

0 commit comments

Comments
 (0)