Skip to content

Commit cee3c46

Browse files
committed
more work
1 parent 8c26d14 commit cee3c46

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/csv-2-json.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ var convertArrayRepresentation = function (arrayRepresentation) {
5252

5353
// Filter out non-empty strings
5454
return _.filter(arrayRepresentation, function (value) {
55-
return value;
56-
});
55+
return value;
56+
});
5757
};
5858

5959
/**

lib/json-2-csv.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var options = {}; // Initialize the options - this will be populated when the js
1414
*/
1515
var generateHeading = function(data) {
1616
return new Promise(function (resolve, reject) {
17-
if (options.KEYS) { resolve(options.KEYS); }
17+
if (options.KEYS) { return resolve(options.KEYS); }
1818

1919
var keys = _.map(_.keys(data), function (key, indx) { // for each key
2020
if (_.isObject(data[key])) {

0 commit comments

Comments
 (0)