From e7612790f561d96f893fac6a0e22e4d972cbe113 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 2 Aug 2020 13:49:28 +0900 Subject: [PATCH] refactor --- src/client/pages/messaging/messaging-room.message.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/pages/messaging/messaging-room.message.vue b/src/client/pages/messaging/messaging-room.message.vue index 4461740df..40ee4e8b9 100644 --- a/src/client/pages/messaging/messaging-room.message.vue +++ b/src/client/pages/messaging/messaging-room.message.vue @@ -55,16 +55,16 @@ export default Vue.extend({ }, computed: { isMe(): boolean { - return this.message.userId == this.$store.state.i.id; + return this.message.userId === this.$store.state.i.id; }, urls(): string[] { if (this.message.text) { const ast = parse(this.message.text); return unique(ast - .filter(t => ((t.node.type == 'url' || t.node.type == 'link') && t.node.props.url && !t.node.props.silent)) + .filter(t => ((t.node.type === 'url' || t.node.type === 'link') && t.node.props.url && !t.node.props.silent)) .map(t => t.node.props.url)); } else { - return null; + return []; } } },