Fix ESLint warnings
This commit is contained in:
parent
20c09513b2
commit
bde03cc846
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)
|
// Join channel (if we are already in the channel this does nothing)
|
||||||
client.joinRoom(channel).then(() => {
|
client.joinRoom(channel).then(() => {
|
||||||
console.log('Joined channel');
|
core.info('Joined channel');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Send message
|
// Send message
|
||||||
@ -43,7 +43,7 @@ try {
|
|||||||
client.sendEvent(channel, 'm.room.message', content, '').then(() => {
|
client.sendEvent(channel, 'm.room.message', content, '').then(() => {
|
||||||
// message sent successfully
|
// message sent successfully
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err);
|
core.error(err);
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
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)
|
// Join channel (if we are already in the channel this does nothing)
|
||||||
client.joinRoom(channel).then(() => {
|
client.joinRoom(channel).then(() => {
|
||||||
console.log('Joined channel');
|
core.info('Joined channel');
|
||||||
});
|
});
|
||||||
|
|
||||||
// Send message
|
// Send message
|
||||||
@ -36,7 +36,7 @@ try {
|
|||||||
client.sendEvent(channel, 'm.room.message', content, '').then(() => {
|
client.sendEvent(channel, 'm.room.message', content, '').then(() => {
|
||||||
// message sent successfully
|
// message sent successfully
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
console.log(err);
|
core.error(err);
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user