From 616a8ed99750fe8f7a06cb6a9055b3ec16a6c23c Mon Sep 17 00:00:00 2001 From: Radu Date: Mon, 19 Sep 2022 05:48:56 +0200 Subject: [PATCH] [chore] code format --- packages/adapter-cloudflare/src/worker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/adapter-cloudflare/src/worker.js b/packages/adapter-cloudflare/src/worker.js index 1e4c882118eb..d3223615f2a0 100644 --- a/packages/adapter-cloudflare/src/worker.js +++ b/packages/adapter-cloudflare/src/worker.js @@ -20,7 +20,7 @@ const worker = { // static assets if (pathname.startsWith(prefix)) { res = await env.ASSETS.fetch(req); - if (!res.ok) return res + if (!res.ok) return res; const cache_control = pathname.startsWith(prefix + 'immutable/') ? 'public, immutable, max-age=31536000'