Remove jshint comments

This commit is contained in:
Daniel García Aubert
2020-04-04 17:29:33 +02:00
parent 4054c6923f
commit f583a4240a
5 changed files with 1 additions and 8 deletions
-3
View File
@@ -5,8 +5,6 @@ const debug = require('debug')('windshaft:cartodb:error-middleware');
module.exports = function errorMiddleware (/* options */) {
return function error (err, req, res, next) {
// jshint unused:false
// jshint maxcomplexity:9
var allErrors = Array.isArray(err) ? err : [err];
allErrors = populateLimitErrors(allErrors);
@@ -115,7 +113,6 @@ module.exports.findStatusCode = findStatusCode;
function statusFromErrorMessage (errMsg) {
// Find an appropriate statusCode based on message
// jshint maxcomplexity:7
var statusCode = 400;
if (errMsg.indexOf('permission denied') !== -1) {
statusCode = 403;