Skip to content

Commit bbaf7bf

Browse files
author
Dave C-J
committed
correcting typos in trigger node... oops
1 parent 04673c6 commit bbaf7bf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

nodes/core/core/89-trigger.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ module.exports = function(RED) {
3737
if (!isNaN(this.op1)) { this.op1 = Number(this.op1); }
3838
if (!isNaN(this.op2)) { this.op2 = Number(this.op2); }
3939
if (this.op1 == "true") { this.op1 = true; }
40-
if (this.op2 == "true") { this.op1 = true; }
41-
if (this.op1 == "false") { this.op2 = false; }
40+
if (this.op2 == "true") { this.op2 = true; }
41+
if (this.op1 == "false") { this.op1 = false; }
4242
if (this.op2 == "false") { this.op2 = false; }
4343
if (this.op1 == "null") { this.op1 = null; }
44-
if (this.op2 == "null") { this.op1 = null; }
44+
if (this.op2 == "null") { this.op2 = null; }
4545
try { this.op1 = JSON.parse(this.op1); }
4646
catch(e) { this.op1 = this.op1; }
4747
try { this.op2 = JSON.parse(this.op2); }

0 commit comments

Comments
 (0)