We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing return in thing.controller.js at line 43: WHICH causes
Warning: a promise was created in a handler at angular-fullstack/server/api/thing/thing.controller.js:43:27 but was not returned from it,
Change:
function removeEntity(res) { return function(entity) { if(entity) { return entity.remove() .then(() => { res.status(204).end(); }); } }; }
to:
function removeEntity(res) { return function(entity) { if(entity) { return entity.remove() .then(() => { ------> return res.status(204).end(); }); } }; }
The fix above is better changed too below, because otherwise the eslint: arrow-body-style rule is triggered. to:
function removeEntity(res) { return function(entity) { if(entity) { return entity.remove() .then(() => { res.status(204).end(); ------> return null; }); } }; }
The text was updated successfully, but these errors were encountered:
a84ff90
No branches or pull requests
Missing return in thing.controller.js at line 43:
WHICH causes
Warning: a promise was created in a handler at angular-fullstack/server/api/thing/thing.controller.js:43:27 but was not returned from it,
Change:
to:
The fix above is better changed too below, because otherwise the eslint: arrow-body-style rule is triggered.
to:
The text was updated successfully, but these errors were encountered: