From 965411452f37dc3cffa7de1042e1d69ad3cc7965 Mon Sep 17 00:00:00 2001 From: Mark Dalgleish Date: Tue, 22 Aug 2023 09:51:56 +1000 Subject: [PATCH] refactor(deno): fix Deno lint errors --- packages/remix-deno/sessions/fileStorage.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/remix-deno/sessions/fileStorage.ts b/packages/remix-deno/sessions/fileStorage.ts index 5b76271228f..1595b69f7b0 100644 --- a/packages/remix-deno/sessions/fileStorage.ts +++ b/packages/remix-deno/sessions/fileStorage.ts @@ -32,7 +32,7 @@ export function createFileSessionStorage({ }: FileSessionStorageOptions): SessionStorage { return createSessionStorage({ cookie, - async createData(data, expires) { + createData: async (data, expires) => { const content = JSON.stringify({ data, expires }); while (true) { @@ -65,7 +65,7 @@ export function createFileSessionStorage({ } } }, - async readData(id) { + readData: async (id) => { try { const file = getFile(dir, id); const content = JSON.parse(await Deno.readTextFile(file)); @@ -87,13 +87,13 @@ export function createFileSessionStorage({ return null; } }, - async updateData(id, data, expires) { + updateData: async (id, data, expires) => { const content = JSON.stringify({ data, expires }); const file = getFile(dir, id); await Deno.mkdir(path.dirname(file), { recursive: true }).catch(() => {}); await Deno.writeTextFile(file, content); }, - async deleteData(id) { + deleteData: async (id) => { try { await Deno.remove(getFile(dir, id)); } catch (error) {