mirror of
https://github.com/wassname/talk.git
synced 2026-07-10 13:37:41 +08:00
Fix linting problems. Remove comment of code. Add package.
This commit is contained in:
@@ -28,7 +28,7 @@ const handleResp = res => {
|
||||
if (res.status === 401) {
|
||||
throw new Error('Not Authorized to make this request');
|
||||
} else if (res.status > 399) {
|
||||
throw new Error('Error! Status ' + res.status);
|
||||
throw new Error('Error! Status ', res.status);
|
||||
} else if (res.status === 204) {
|
||||
return res.text();
|
||||
} else {
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
"body-parser": "^1.15.2",
|
||||
"debug": "^2.2.0",
|
||||
"ejs": "^2.5.2",
|
||||
"eslint-config-postcss": "^2.0.2",
|
||||
"express": "^4.14.0",
|
||||
"mongoose": "^4.6.5",
|
||||
"morgan": "^1.7.0",
|
||||
|
||||
@@ -44,6 +44,4 @@ describe('Comment: models', () => {
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
// });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user