Skip to content

Commit

Permalink
Fix englercj#53: Only iterate rows if more than 1 exists
Browse files Browse the repository at this point in the history
  • Loading branch information
englercj authored and davehorton committed Sep 14, 2018
1 parent 8a3b1bd commit 54c64fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/esl/Connection.js
Expand Up @@ -591,7 +591,7 @@ Connection.prototype.show = function(item, format, cb) {
if(parsed.rowCount === 1) {
delete doc.row.$;
parsed.rows.push(doc.row);
} else {
} else if(parsed.rowCount > 1) {
doc.row.forEach(function(row) {
delete row.$;
parsed.rows.push(row);
Expand Down

0 comments on commit 54c64fa

Please sign in to comment.