Fix ESLint warnings
This commit is contained in:
parent
20c09513b2
commit
a0761a2ff2
4
dist/index.js
vendored
4
dist/index.js
vendored
@ -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);
|
||||
|
||||
4
index.js
4
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user