Skip to content

Commit da07786

Browse files
committed
chore: lint fix
1 parent 27174a8 commit da07786

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/runtime/server/api/_hub/blob/[...pathname].put.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ async function streamToArrayBuffer(stream: ReadableStream, streamSize: number) {
88
const result = new Uint8Array(streamSize)
99
let bytesRead = 0
1010
const reader = stream.getReader()
11-
// eslint-disable-next-line no-constant-condition
11+
1212
while (true) {
1313
const { done, value } = await reader.read()
1414
if (done) {

src/runtime/server/utils/auth.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type { H3Event } from 'h3'
22
import { getHeader, createError, handleCors } from 'h3'
33
import { $fetch } from 'ofetch'
44

5-
let localCache: Record<string, boolean> = {}
5+
const localCache: Record<string, boolean> = {}
66

77
export async function requireNuxtHubAuthorization(event: H3Event) {
88
// Skip if in development

0 commit comments

Comments
 (0)