We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b8e941 commit 0a0e837Copy full SHA for 0a0e837
arduino-ide-extension/src/common/protocol/monitor-service.ts
@@ -190,12 +190,10 @@ export function monitorConnectionStatusEquals(
190
left: MonitorConnectionStatus,
191
right: MonitorConnectionStatus
192
): boolean {
193
- if (typeof left === 'string') {
194
- return typeof right === 'string' ? left === right : false;
+ if (typeof left === 'object' && typeof right === 'object') {
+ return left.errorMessage === right.errorMessage;
195
}
196
- return typeof right === 'object'
197
- ? right.errorMessage === left.errorMessage
198
- : false;
+ return left === right;
199
200
201
/**
0 commit comments