From 3e443f4981f9528c6629372c12cfe65f893da50c Mon Sep 17 00:00:00 2001 From: Pooya Parsa Date: Thu, 19 Dec 2024 22:38:43 +0100 Subject: [PATCH] chore: lint --- src/presets/cloudflare/runtime/cloudflare-pages.ts | 6 +++++- src/runtime/internal/storage.ts | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/presets/cloudflare/runtime/cloudflare-pages.ts b/src/presets/cloudflare/runtime/cloudflare-pages.ts index a7f59cad6e..753de02d7d 100644 --- a/src/presets/cloudflare/runtime/cloudflare-pages.ts +++ b/src/presets/cloudflare/runtime/cloudflare-pages.ts @@ -41,7 +41,11 @@ export default { import.meta._websocket && request.headers.get("upgrade") === "websocket" ) { - return ws!.handleUpgrade(request as any, env, context as unknown as ExecutionContext); + return ws!.handleUpgrade( + request as any, + env, + context as unknown as ExecutionContext + ); } const url = new URL(request.url); diff --git a/src/runtime/internal/storage.ts b/src/runtime/internal/storage.ts index ad76e9098e..66dee2faa6 100644 --- a/src/runtime/internal/storage.ts +++ b/src/runtime/internal/storage.ts @@ -5,5 +5,7 @@ import { storage } from "#nitro-internal-virtual/storage"; export function useStorage( base = "" ): Storage { - return (base ? prefixStorage(storage, base) : storage) as unknown as Storage; + return (base + ? prefixStorage(storage, base) + : storage) as unknown as Storage; }