Skip to content

Commit

Permalink
Fix typo for test
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb committed Oct 1, 2020
1 parent 9de5931 commit db44dae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ class TuyaDevice extends EventEmitter {
try {
packets = this.device.parser.parse(data);

if (this.this.nullPayloadOnJSONError) {
if (this.nullPayloadOnJSONError) {
for (const packet of packets) {
if (packet.payload && packet.payload === 'json obj data unvalid') {
this.emit('error', packet.payload);
Expand Down

0 comments on commit db44dae

Please sign in to comment.