Skip to content

Commit 306932d

Browse files
committed
Actually use lint --fix :)
1 parent 6942648 commit 306932d

File tree

1 file changed

+3
-2
lines changed
  • api/server/services/Files/S3

1 file changed

+3
-2
lines changed

api/server/services/Files/S3/crud.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,11 +259,12 @@ function extractKeyFromS3Url(fileUrlOrKey) {
259259

260260
if (endpoint?.trim() && forcePathStyle) {
261261
const endpointUrl = new URL(endpoint);
262-
263-
const startPos = endpointUrl.pathname.length +
262+
const startPos =
263+
endpointUrl.pathname.length +
264264
(endpointUrl.pathname.endsWith('/') ? 2 : 1) +
265265
bucketName.length +
266266
1;
267+
267268
return url.pathname.substring(startPos);
268269
}
269270

0 commit comments

Comments
 (0)