Improve readability

This commit is contained in:
syuilo 2018-08-28 15:50:52 +09:00
parent 114725d7f4
commit 64d197eeed

View file

@ -132,7 +132,9 @@ export default class CoreModule implements IModule {
incLove(); incLove();
return true; return true;
} else if (msg.text.includes('おやすみ')) { }
if (msg.text.includes('おやすみ')) {
if (msg.friend.name) { if (msg.friend.name) {
msg.reply(serifs.core.goodNightWithName.replace('{name}', msg.friend.name)); msg.reply(serifs.core.goodNightWithName.replace('{name}', msg.friend.name));
} else { } else {
@ -142,9 +144,9 @@ export default class CoreModule implements IModule {
incLove(); incLove();
return true; return true;
} else {
return false;
} }
return false;
} }
private nadenade = (msg: MessageLike): boolean => { private nadenade = (msg: MessageLike): boolean => {