Skip to content

Commit 15b1413

Browse files
Lint
1 parent 98ca7f0 commit 15b1413

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

packages/storage/src/implementation/requests.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ export function getBytes<I extends ConnectionType>(
211211
service: FirebaseStorageImpl,
212212
location: Location,
213213
maxDownloadSizeBytes?: number
214-
): RequestInfo<I, I> {
214+
): RequestInfo<I, I> {
215215
const urlPart = location.fullServerUrl();
216216
const url = makeUrl(urlPart, service.host, service._protocol) + '?alt=media';
217217
const method = 'GET';

packages/storage/src/reference.ts

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
* @fileoverview Defines the Firebase StorageReference class.
2020
*/
2121

22-
import {PassThrough, Transform, TransformOptions} from 'stream';
22+
import { PassThrough, Transform, TransformOptions } from 'stream';
2323

24-
import {FbsBlob} from './implementation/blob';
25-
import {Location} from './implementation/location';
26-
import {getMappings} from './implementation/metadata';
27-
import {child, lastComponent, parent} from './implementation/path';
24+
import { FbsBlob } from './implementation/blob';
25+
import { Location } from './implementation/location';
26+
import { getMappings } from './implementation/metadata';
27+
import { child, lastComponent, parent } from './implementation/path';
2828
import {
2929
deleteObject as requestsDeleteObject,
3030
getBytes,
@@ -34,14 +34,14 @@ import {
3434
multipartUpload,
3535
updateMetadata as requestsUpdateMetadata
3636
} from './implementation/requests';
37-
import {ListOptions, UploadResult} from './public-types';
38-
import {dataFromString, StringFormat} from './implementation/string';
39-
import {Metadata} from './metadata';
40-
import {FirebaseStorageImpl} from './service';
41-
import {ListResult} from './list';
42-
import {UploadTask} from './task';
43-
import {invalidRootOperation, noDownloadURL} from './implementation/error';
44-
import {validateNumber} from './implementation/type';
37+
import { ListOptions, UploadResult } from './public-types';
38+
import { dataFromString, StringFormat } from './implementation/string';
39+
import { Metadata } from './metadata';
40+
import { FirebaseStorageImpl } from './service';
41+
import { ListResult } from './list';
42+
import { UploadTask } from './task';
43+
import { invalidRootOperation, noDownloadURL } from './implementation/error';
44+
import { validateNumber } from './implementation/type';
4545
import {
4646
newBlobConnection,
4747
newBytesConnection,
@@ -184,7 +184,11 @@ export function getBlobInternal(
184184
maxDownloadSizeBytes?: number
185185
): Promise<Blob> {
186186
ref._throwIfRoot('getBlob');
187-
const requestInfo = getBytes(ref.storage, ref._location, maxDownloadSizeBytes);
187+
const requestInfo = getBytes(
188+
ref.storage,
189+
ref._location,
190+
maxDownloadSizeBytes
191+
);
188192
return ref.storage
189193
.makeRequestWithTokens(requestInfo, newBlobConnection)
190194
.then(blob =>
@@ -201,7 +205,11 @@ export function getStreamInternal(
201205
maxDownloadSizeBytes?: number
202206
): NodeJS.ReadableStream {
203207
ref._throwIfRoot('getStream');
204-
const requestInfo = getBytes(ref.storage, ref._location, maxDownloadSizeBytes);
208+
const requestInfo = getBytes(
209+
ref.storage,
210+
ref._location,
211+
maxDownloadSizeBytes
212+
);
205213

206214
/** A transformer that passes through the first n bytes. */
207215
const newMaxSizeTransform: (n: number) => TransformOptions = n => {

0 commit comments

Comments
 (0)