Skip to content

Commit 5f17c48

Browse files
committed
Fix use of the '!' operator inside the 'in' operator
1 parent 4dc22df commit 5f17c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uart.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ To do:
507507
DATA : 0x8000, // Sent after FILE_SEND with blocks of data for the file
508508
FILE_RECV : 0xA000 // receive a file - returns a series of PT_TYPE_DATA packets, with a final zero length packet to end
509509
}
510-
if (!pkType in PKTYPES) throw new Error("'pkType' not one of "+Object.keys(PKTYPES));
510+
if (!(pkType in PKTYPES)) throw new Error("'pkType' not one of "+Object.keys(PKTYPES));
511511
let connection = this;
512512
return new Promise((resolve,reject) => {
513513
let timeout;

0 commit comments

Comments
 (0)