allow passing false and 0 as message data
This commit is contained in:
parent
456cf3f312
commit
e53b83b6d7
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ const parser={
|
|||
};
|
||||
|
||||
function formatData(message){
|
||||
if(!message.data){
|
||||
if(!message.data && message.data!==false && message.data!==0)){
|
||||
message.data={};
|
||||
}
|
||||
if(message.data['_maxListeners']){
|
||||
|
|
Loading…
Reference in a new issue