Skip to content

Commit

Permalink
Update items/metadata/itemchannellink.js
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>

Co-authored-by: Dan Cunningham <dan@digitaldan.com>
  • Loading branch information
Florian Hotze and digitaldan authored Dec 30, 2022
1 parent ec4b541 commit f403da7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions items/metadata/itemchannellink.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ const replaceItemChannelLink = function (itemName, channelUID, conf) {
const existing = getItemChannelLink(itemName, channelUID);
if (existing === null) {
_addItemChannelLink(itemName, channelUID, conf);
return null;
} else {
_updateItemChannelLink(itemName, channelUID, conf);
return existing;
}
return existing;
};

/**
Expand Down

0 comments on commit f403da7

Please sign in to comment.