File tree Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Expand file tree Collapse file tree 4 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import { ListenEvent } from './interfaces';
23
23
* @param events
24
24
*/
25
25
export function validateEventsArray ( events ?: ListenEvent [ ] ) : ListenEvent [ ] {
26
- if ( events == null || events ! . length === 0 ) {
26
+ if ( events == null || events . length === 0 ) {
27
27
events = [
28
28
ListenEvent . added ,
29
29
ListenEvent . removed ,
Original file line number Diff line number Diff line change @@ -78,9 +78,8 @@ describe('Firebase Storage > Blob', () => {
78
78
const blob1 = new FbsBlob ( arr1 , true ) ;
79
79
const blob2 = new FbsBlob ( arr2 , true ) ;
80
80
81
- const concatenated = FbsBlob . getBlob ( blob1 , blob2 ) ;
81
+ const concatenated = FbsBlob . getBlob ( blob1 , blob2 ) ! ;
82
82
83
- assert . isNotNull ( concatenated ) ;
84
83
assert . equal ( 20 , concatenated ! . size ( ) ) ;
85
84
} ) ;
86
85
} ) ;
Original file line number Diff line number Diff line change @@ -107,7 +107,9 @@ export function assertThrows(
107
107
}
108
108
} ) . to . throw ( ) ;
109
109
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
111
113
expect ( captured . code ) . to . equal ( code ) ;
112
114
return captured as FirebaseStorageError | null ;
113
115
}
Original file line number Diff line number Diff line change @@ -43,29 +43,25 @@ export class Sha1 {
43
43
/**
44
44
* Holds the previous values of accumulated variables a-e in the compress_
45
45
* function.
46
- * @type {!number[] }
47
46
* @private
48
47
*/
49
48
private chain_ : number [ ] = [ ] ;
50
49
51
50
/**
52
51
* A buffer holding the partially computed hash result.
53
- * @type {!number[] }
54
52
* @private
55
53
*/
56
54
private buf_ : number [ ] = [ ] ;
57
55
58
56
/**
59
57
* An array of 80 bytes, each a part of the message to be hashed. Referred to
60
58
* as the message schedule in the docs.
61
- * @type {!number[] }
62
59
* @private
63
60
*/
64
61
private W_ : number [ ] = [ ] ;
65
62
66
63
/**
67
64
* Contains data needed to pad messages less than 64 bytes.
68
- * @type {!number[] }
69
65
* @private
70
66
*/
71
67
private pad_ : number [ ] = [ ] ;
You can’t perform that action at this time.
0 commit comments