Skip to content

Commit 377281e

Browse files
committed
fix lint
1 parent a5b15c2 commit 377281e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/webserial.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,7 @@ class Transport {
227227
} catch (error) {
228228
if (error instanceof Error) {
229229
// Read retry is possible for the following errors
230-
const nonFatal = [
231-
"BufferOverrunError",
232-
"FramingError",
233-
"BreakError",
234-
"ParityError"
235-
];
230+
const nonFatal = ["BufferOverrunError", "FramingError", "BreakError", "ParityError"];
236231
if (nonFatal.includes(error.name)) {
237232
this.trace(`Recoverable serial port error: ${error.message}`);
238233
continue;

0 commit comments

Comments
 (0)