Skip to content

Commit

Permalink
chore: lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Atinux committed Apr 25, 2024
1 parent 27174a8 commit da07786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/server/api/_hub/blob/[...pathname].put.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ async function streamToArrayBuffer(stream: ReadableStream, streamSize: number) {
const result = new Uint8Array(streamSize)
let bytesRead = 0
const reader = stream.getReader()
// eslint-disable-next-line no-constant-condition

while (true) {
const { done, value } = await reader.read()
if (done) {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/server/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { H3Event } from 'h3'
import { getHeader, createError, handleCors } from 'h3'
import { $fetch } from 'ofetch'

let localCache: Record<string, boolean> = {}
const localCache: Record<string, boolean> = {}

export async function requireNuxtHubAuthorization(event: H3Event) {
// Skip if in development
Expand Down

0 comments on commit da07786

Please sign in to comment.