[eslint] remove exception for no-empty, and fix violations

This commit is contained in:
spalger
2017-06-14 19:17:03 -07:00
parent 499b51dfb3
commit c9dc690698
5 changed files with 23 additions and 7 deletions

View File

@ -77,7 +77,11 @@ module.exports = {
if (logConfig && logConfig.type === 'tracer') {
try {
fs.unlinkSync(fromRoot('elasticsearch-tracer.log'));
} catch (e) {}
} catch (error) {
if (error.code !== 'ENOENT') {
throw error;
}
}
}
// close existing client