Skip to content

Commit 14a01a0

Browse files
committed
Revert CR suggestion :(
1 parent 063e8b4 commit 14a01a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/serial.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ class Serial extends EventTarget {
129129
async send(data, callback) {
130130
let result;
131131
try {
132-
result = (await this._protocol.send(data, callback)) ?? { bytesSent: 0 };
132+
result = await this._protocol.send(data, callback);
133133
} catch (error) {
134134
result = { bytesSent: 0 };
135135
console.error(`${this.logHead} Error sending data:`, error);

0 commit comments

Comments
 (0)