Skip to content

Commit f6e47dc

Browse files
committed
Cleanup
1 parent 22c62e9 commit f6e47dc

File tree

14 files changed

+10
-30
lines changed

14 files changed

+10
-30
lines changed

config/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ module.exports = {
184184
'assertionStyle': 'as'
185185
}
186186
],
187-
'@typescript-eslint/no-explicit-any': 'error',
187+
'@typescript-eslint/no-explicit-any': ['error', { 'ignoreRestArgs': true }],
188188
'@typescript-eslint/no-namespace': [
189189
'error',
190190
{

packages/storage/.npmignore

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/storage/compat/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/compat/list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2019 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/compat/tasksnapshot.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/rollup.config.compat.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2018 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/rollup.config.exp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2018 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/src/implementation/backoff.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ export function start(
5050
}
5151
let triggeredCallback = false;
5252

53-
// TODO: This disable can be removed and the 'ignoreRestArgs' option added to
54-
// the no-explicit-any rule when ESlint releases it.
55-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5653
function triggerCallback(...args: any[]): void {
5754
if (!triggeredCallback) {
5855
triggeredCallback = true;
@@ -67,9 +64,6 @@ export function start(
6764
}, millis);
6865
}
6966

70-
// TODO: This disable can be removed and the 'ignoreRestArgs' option added to
71-
// the no-explicit-any rule when ESlint releases it.
72-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
7367
function handler(success: boolean, ...args: any[]): void {
7468
if (triggeredCallback) {
7569
return;

packages/storage/src/implementation/url.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export function makeQueryString(params: UrlParams): string {
3030
let queryPart = '?';
3131
for (const key in params) {
3232
if (params.hasOwnProperty(key)) {
33-
// @ts-ignore TODO: remove once typescript is upgraded to 3.5.x
3433
const nextPart = encode(key) + '=' + encode(params[key]);
3534
queryPart = queryPart + nextPart + '&';
3635
}

packages/storage/test/unit/reference.compat.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.
@@ -42,13 +42,11 @@ function makeFakeService(
4242
}
4343

4444
function makeStorage(url: string): ReferenceCompat {
45-
console.log('makeStorage');
4645
const service = new StorageService(
4746
{} as FirebaseApp,
4847
testShared.emptyAuthProvider,
4948
testShared.makePool(null)
5049
);
51-
console.log('created service');
5250
return new ReferenceCompat(new Reference(service, url));
5351
}
5452

packages/storage/test/unit/reference.exp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/test/unit/service.compat.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/test/unit/service.exp.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2017 Google LLC
3+
* Copyright 2020 Google LLC
44
*
55
* Licensed under the Apache License, Version 2.0 (the "License");
66
* you may not use this file except in compliance with the License.

packages/storage/test/unit/xhrio.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ export class TestingXhrIo implements XhrIo {
6464
headers?: Headers
6565
): Promise<XhrIo> {
6666
if (this.state !== State.START) {
67-
//TODO: Make a code.
6867
throw new FirebaseStorageError(Code.UNKNOWN, "Can't send again");
6968
}
7069

@@ -82,7 +81,6 @@ export class TestingXhrIo implements XhrIo {
8281
headers: { [key: string]: string }
8382
): void {
8483
if (this.state !== State.SENT) {
85-
//TODO: Make a code.
8684
throw new FirebaseStorageError(
8785
Code.UNKNOWN,
8886
"Can't simulate response before send/more than once"

0 commit comments

Comments
 (0)