Skip to content

Commit f1f9296

Browse files
committed
Fixes linting errors
1 parent f1b540f commit f1f9296

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/app/api/proxy/route.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { NextRequest, NextResponse } from "next/server"
2-
import { makeAPIErrorResponse, makeUnauthenticatedAPIErrorResponse } from "@/common"
2+
import { env, makeAPIErrorResponse, makeUnauthenticatedAPIErrorResponse } from "@/common"
33
import { session } from "@/composition"
4-
import { env } from "@/common"
54

65
const ErrorName = {
76
MAX_FILE_SIZE_EXCEEDED: "MaxFileSizeExceededError",
@@ -60,7 +59,7 @@ async function downloadFile(params: {
6059
let totalBytes = 0
6160
let didExceedMaxBytes = false
6261
const reader = response.body.getReader()
63-
let chunks: Uint8Array[] = []
62+
const chunks: Uint8Array[] = []
6463
// eslint-disable-next-line no-constant-condition
6564
while (true) {
6665
// eslint-disable-next-line no-await-in-loop

0 commit comments

Comments
 (0)