fix: turn on nullability in the code base.
This commit is contained in:

committed by
Tobias Bosch

parent
728c9d0632
commit
5293794316
@ -121,7 +121,7 @@ _global.beforeEach(function() {
|
||||
}
|
||||
};
|
||||
|
||||
function compareMap(actual: any, expected: any): boolean|undefined {
|
||||
function compareMap(actual: any, expected: any): boolean {
|
||||
if (actual instanceof Map) {
|
||||
let pass = actual.size === expected.size;
|
||||
if (pass) {
|
||||
@ -129,7 +129,8 @@ _global.beforeEach(function() {
|
||||
}
|
||||
return pass;
|
||||
} else {
|
||||
return undefined;
|
||||
// TODO(misko): we should change the return, but jasmine.d.ts is not null safe
|
||||
return undefined !;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user