Skip to content

Commit 98ae3eb

Browse files
committed
Adding travis for builds; Fixing converter
1 parent 98d1252 commit 98ae3eb

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
language: node_js
2+
node_js:
3+
- "0.10"

lib/converter.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,12 @@ var buildOptions = function (opts) {
2626
module.exports = {
2727

2828
json2csv: function (array, callback, opts) {
29-
if (!opts) { opts = OPTIONS(); }
30-
else { opts = buildOptions(opts); }
29+
opts = buildOptions(opts);
3130
json2Csv.json2csv(opts, array, callback);
3231
},
3332

3433
csv2json: function (csv, callback, opts) {
35-
if (!opts) { opts = OPTIONS(); }
36-
else { opts = buildOptions(opts); }
34+
opts = buildOptions(opts);
3735
csv2Json.csv2json(opts, csv, callback);
3836
}
3937

0 commit comments

Comments
 (0)