From 0e3e90f94f684ab0dcd8039dd2087241b85ac612 Mon Sep 17 00:00:00 2001
From: syuilo <Syuilotan@yahoo.co.jp>
Date: Mon, 22 Mar 2021 15:16:45 +0900
Subject: [PATCH] refactor

---
 src/misc/keypair-store.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/misc/keypair-store.ts b/src/misc/keypair-store.ts
index 43f451110c..c78fdd7555 100644
--- a/src/misc/keypair-store.ts
+++ b/src/misc/keypair-store.ts
@@ -6,5 +6,5 @@ import { Cache } from './cache';
 const cache = new Cache<UserKeypair>(Infinity);
 
 export async function getUserKeypair(userId: User['id']): Promise<UserKeypair> {
-	return await cache.fetch(userId, async () => await UserKeypairs.findOneOrFail(userId));
+	return await cache.fetch(userId, () => UserKeypairs.findOneOrFail(userId));
 }