Skip to content

Commit ff81315

Browse files
author
Vikas Agarwal
committed
lint fix
1 parent fc183e0 commit ff81315

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/routes/admin/project-delete-index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* globals Promise */
33

44
import _ from 'lodash';
5-
import config from 'config';
65
import { middleware as tcMiddleware } from 'tc-core-library-js';
76
import util from '../../util';
87

@@ -17,8 +16,6 @@ import util from '../../util';
1716

1817
// var permissions = require('tc-core-library-js').middleware.permissions
1918
const permissions = tcMiddleware.permissions;
20-
const ES_PROJECT_INDEX = config.get('elasticsearchConfig.indexName');
21-
// const ES_PROJECT_TYPE = config.get('elasticsearchConfig.docType');
2219

2320
module.exports = [
2421
permissions('project.admin'),
@@ -43,6 +40,6 @@ module.exports = [
4340
// we would want to ignore no such index error
4441
ignore: [404],
4542
});
46-
res.status(200).json(util.wrapResponse(req.id, { message: 'Delete index request successfully submitted' }));
43+
return res.status(200).json(util.wrapResponse(req.id, { message: 'Delete index request successfully submitted' }));
4744
},
4845
];

0 commit comments

Comments
 (0)