1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix a wrong statement

This commit is contained in:
HirokiUchikawa 2018-06-06 18:46:32 +09:00
parent 7aced85a31
commit f44487338d

View File

@ -77,7 +77,7 @@ Memory.prototype.clean = function(activeNodes){
for(var id in this.data){ for(var id in this.data){
if(this.data.hasOwnProperty(id) && id !== "global"){ if(this.data.hasOwnProperty(id) && id !== "global"){
var idParts = id.split(":"); var idParts = id.split(":");
if(!activeNodes.indexOf(idParts[0])){ if(activeNodes.indexOf(idParts[0]) === -1){
delete this.data[id]; delete this.data[id];
} }
} }