forked from external-repos/pa11y-dashboard
Fix JSCS errors
This commit is contained in:
@@ -20,10 +20,10 @@ var presentTask = require('../../view/presenter/task');
|
||||
module.exports = route;
|
||||
|
||||
// Route definition
|
||||
function route (app) {
|
||||
function route(app) {
|
||||
|
||||
app.express.get('/:id/delete', function (req, res, next) {
|
||||
app.webservice.task(req.params.id).get({}, function (err, task) {
|
||||
app.express.get('/:id/delete', function(req, res, next) {
|
||||
app.webservice.task(req.params.id).get({}, function(err, task) {
|
||||
if (err) {
|
||||
return next();
|
||||
}
|
||||
@@ -34,8 +34,8 @@ function route (app) {
|
||||
});
|
||||
});
|
||||
|
||||
app.express.post('/:id/delete', function (req, res, next) {
|
||||
app.webservice.task(req.params.id).remove(function (err) {
|
||||
app.express.post('/:id/delete', function(req, res, next) {
|
||||
app.webservice.task(req.params.id).remove(function(err) {
|
||||
if (err) {
|
||||
return next();
|
||||
}
|
||||
|
Reference in New Issue
Block a user