Skip to content

Commit

Permalink
Fixing a lint error due to diff project rules & IDE bug
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Aug 26, 2018
1 parent 8e3a779 commit e5c926b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions lib/serializers.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ const codes = require("http").STATUS_CODES,
serializers = new Map();

function custom (arg, err, status = 200, stack = false) {
return {
data: arg,
error: err !== null ? (stack ? err.stack : err.message) || err || codes[status] : null,
links: [],
status: status
};
return {
data: arg,
error: err !== null ? (stack ? err.stack : err.message) || err || codes[status] : null,
links: [],
status: status
};
}

function reduce (arg, err, status = 200, stack = false) {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tenso",
"description": "Tensō is an elastic REST API gateway for node.js",
"version": "8.0.23",
"version": "8.0.24",
"homepage": "http://avoidwork.github.io/tenso",
"author": "Jason Mulligan <[email protected]>",
"repository": {
Expand Down

0 comments on commit e5c926b

Please sign in to comment.