Fix ESLint warnings

This commit is contained in:
Tristan Helmich 2020-10-06 22:03:43 +00:00
parent 20c09513b2
commit bde03cc846
2 changed files with 4 additions and 4 deletions

4
dist/index.js vendored
View File

@ -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);

View File

@ -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);