From bde03cc846566cad886df59916bc22205fed2198 Mon Sep 17 00:00:00 2001 From: Tristan Helmich Date: Tue, 6 Oct 2020 22:03:43 +0000 Subject: [PATCH] Fix ESLint warnings --- dist/index.js | 4 ++-- index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 2df5b87..4d25d86 100644 --- a/dist/index.js +++ b/dist/index.js @@ -31,7 +31,7 @@ try { // Join channel (if we are already in the channel this does nothing) client.joinRoom(channel).then(() => { - console.log('Joined channel'); + core.info('Joined channel'); }); // Send message @@ -43,7 +43,7 @@ try { client.sendEvent(channel, 'm.room.message', content, '').then(() => { // message sent successfully }).catch((err) => { - console.log(err); + core.error(err); }); } catch (error) { core.setFailed(error.message); diff --git a/index.js b/index.js index da4bb1f..7fe5605 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ try { // Join channel (if we are already in the channel this does nothing) client.joinRoom(channel).then(() => { - console.log('Joined channel'); + core.info('Joined channel'); }); // Send message @@ -36,7 +36,7 @@ try { client.sendEvent(channel, 'm.room.message', content, '').then(() => { // message sent successfully }).catch((err) => { - console.log(err); + core.error(err); }); } catch (error) { core.setFailed(error.message);