From 5ae8a3c7e8531154d0dd870aaeb92c4c0c14e15d 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 4461740df7..40ee4e8b92 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 []; } } },