Skip to content

Commit

Permalink
1 lining the new serializer
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Aug 18, 2018
1 parent e953f83 commit b744027
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/serializers.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ serializers.set("application/json", (arg, err, status = 200, stack = false) => {
};
});

serializers.set("text/csv", (arg, err, status = 200, stack = false) => {
return err !== null ? (stack ? err.stack : err.message) || err || codes[status] : arg;
});
serializers.set("text/csv", (arg, err, status = 200, stack = false) => err !== null ? (stack ? err.stack : err.message) || err || codes[status] : arg);

module.exports = serializers;

0 comments on commit b744027

Please sign in to comment.