fix: turn on nullability in the code base.

This commit is contained in:
Miško Hevery
2017-04-14 14:40:56 -07:00
committed by Tobias Bosch
parent 728c9d0632
commit 5293794316
27 changed files with 67 additions and 70 deletions

View File

@ -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 !;
}
}
},