Skip to content

Commit dde0757

Browse files
committed
Few more comments to address
1 parent 95f7602 commit dde0757

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

packages/rxfire/database/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import { ListenEvent } from './interfaces';
2323
* @param events
2424
*/
2525
export function validateEventsArray(events?: ListenEvent[]): ListenEvent[] {
26-
if (events == null || events!.length === 0) {
26+
if (events == null || events.length === 0) {
2727
events = [
2828
ListenEvent.added,
2929
ListenEvent.removed,

packages/storage/test/blob.test.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ describe('Firebase Storage > Blob', () => {
7878
const blob1 = new FbsBlob(arr1, true);
7979
const blob2 = new FbsBlob(arr2, true);
8080

81-
const concatenated = FbsBlob.getBlob(blob1, blob2);
81+
const concatenated = FbsBlob.getBlob(blob1, blob2)!;
8282

83-
assert.isNotNull(concatenated);
8483
assert.equal(20, concatenated!.size());
8584
});
8685
});

packages/storage/test/testshared.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,9 @@ export function assertThrows(
107107
}
108108
}).to.throw();
109109
expect(captured).to.be.an.instanceof(FirebaseStorageError);
110-
// @ts-ignore Compiler thinks catch block is unreachable.
110+
// @ts-ignore Compiler does not know callback is invoked immediately and
111+
// thinks catch block is unreachable. This is an open TS issue:
112+
// https://github.com/microsoft/TypeScript/issues/11498
111113
expect(captured.code).to.equal(code);
112114
return captured as FirebaseStorageError | null;
113115
}

packages/util/src/sha1.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,29 +43,25 @@ export class Sha1 {
4343
/**
4444
* Holds the previous values of accumulated variables a-e in the compress_
4545
* function.
46-
* @type {!number[]}
4746
* @private
4847
*/
4948
private chain_: number[] = [];
5049

5150
/**
5251
* A buffer holding the partially computed hash result.
53-
* @type {!number[]}
5452
* @private
5553
*/
5654
private buf_: number[] = [];
5755

5856
/**
5957
* An array of 80 bytes, each a part of the message to be hashed. Referred to
6058
* as the message schedule in the docs.
61-
* @type {!number[]}
6259
* @private
6360
*/
6461
private W_: number[] = [];
6562

6663
/**
6764
* Contains data needed to pad messages less than 64 bytes.
68-
* @type {!number[]}
6965
* @private
7066
*/
7167
private pad_: number[] = [];

0 commit comments

Comments
 (0)