Skip to content

Commit a6a0812

Browse files
authored
Merge pull request #10 from CodyTolene/master
Fix use of the '!' operator inside the 'in' operator
2 parents 4dc22df + 5f17c48 commit a6a0812

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)