Ignore eslint warnings about printing to console

This commit is contained in:
John Karahalis 2018-09-17 14:20:56 -04:00
Родитель 971a7c0434
Коммит 502534d210
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -41,6 +41,7 @@ app.use(morgan('combined'));
app.get('/', (req, res) => {
unflatten(data, (error, output) => {
if (error) {
// eslint-disable-next-line no-console
console.error('Error: ' + error);
return res.status(500).send('Error: ' + error);
}
@ -56,6 +57,7 @@ app.get('/__version__', (req, res) => {
app.get('/__heartbeat__', (req, res) => {
request(data, error => {
if (error) {
// eslint-disable-next-line no-console
console.error('Error: Cannot fetch ' + data);
return res.status(500).send('Error: Cannot fetch ' + data);
}