From d4a630902d8d250b67fcd0ce2b49240786b40368 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 4 Apr 2020 08:46:54 +0900 Subject: refactor: Use === --- src/client/scripts/search.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/scripts/search.ts') diff --git a/src/client/scripts/search.ts b/src/client/scripts/search.ts index 02dd39b035..16057dfd34 100644 --- a/src/client/scripts/search.ts +++ b/src/client/scripts/search.ts @@ -47,9 +47,9 @@ export async function search(v: any, q: string) { uri: q }); dialog.close(); - if (res.type == 'User') { + if (res.type === 'User') { v.$router.push(`/@${res.object.username}@${res.object.host}`); - } else if (res.type == 'Note') { + } else if (res.type === 'Note') { v.$router.push(`/notes/${res.object.id}`); } } catch (e) { -- cgit v1.2.3-freya