Skip to content

Commit

Permalink
fix condition shortsight
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani committed Jul 30, 2018
1 parent 06bfa60 commit b3bb316
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ module.exports = {
]);

}
else if (rcinfo.correlation_id.length) {
else if (rcinfo.correlation_id && rcinfo.correlation_id.length) {

// create correlation chunk
correlation_chunk = new Buffer (6 + rcinfo.correlation_id.length);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hep-js",
"version": "1.0.13",
"version": "1.0.14",
"description": "HEP3 Library for Node.JS",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit b3bb316

Please sign in to comment.