Skip to content

Commit 7545777

Browse files
committed
reverse the null check on _id
1 parent 7b83cc3 commit 7545777

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

OpenFlow/src/Messages/Message.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,7 @@ export class Message {
759759
msg = EnsureNoderedInstanceMessage.assign(this.data);
760760
var name = await this.GetInstanceName(cli, msg._id, msg.name);
761761
var _id = msg._id;
762-
if (_id !== null && _id !== undefined && _id !== "") _id = cli.user._id;
762+
if (_id === null || _id === undefined || _id === "") _id = cli.user._id;
763763
var namespace = Config.namespace;
764764
var hostname = Config.nodered_domain_schema.replace("$nodered_id$", name);
765765
var queue_prefix: string = "";

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.0.519
1+
0.0.520

0 commit comments

Comments
 (0)