Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
fix a bug that null in object
Browse files Browse the repository at this point in the history
  • Loading branch information
XadillaX committed Aug 11, 2015
1 parent cedcbe0 commit 9407e91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/isocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ var helper = require("./helper");

var emptyFunc = function(){};
var _formatSendBody = function(_body) {
if(undefined === _body || null === _body) {
return null;
}

if(util.isArray(_body)) {
return _body.map(function(body) {
return _formatSendBody(body);
Expand Down

0 comments on commit 9407e91

Please sign in to comment.