Skip to content

Commit

Permalink
Remove json conversion
Browse files Browse the repository at this point in the history
If data is invalid, it will fail elsewhere no.
Removed due to #39
  • Loading branch information
Ilya Radchenko committed Jun 19, 2015
1 parent c61ddda commit 847ec3c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/json2csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ var typeOf = function(obj) {
* @param {Function} callback Callback function returning error when invalid field is found
*/
var checkParams = function(params, callback) {
//#check params.data
params.data = JSON.parse(JSON.stringify(params.data));

// if data is an Object, not in array [{}], then just create 1 item array.
// So from now all data in array of object format.
if (typeOf(params.data) != 'array') {
Expand Down

0 comments on commit 847ec3c

Please sign in to comment.