Remove unused arguments

This commit is contained in:
Andrew Branch 2019-04-01 14:14:19 -07:00
parent ae391497b0
commit abd448fe62
No known key found for this signature in database
GPG Key ID: 22CCA4B120C427D2

View File

@ -19518,17 +19518,10 @@ namespace ts {
return type;
}
function checkNonNullNonVoidType(
type: Type,
node: Node,
nullDiagnostic?: DiagnosticMessage,
undefinedDiagnostic?: DiagnosticMessage,
nullOrUndefinedDiagnostic?: DiagnosticMessage,
voidDiagnostic?: DiagnosticMessage
): Type {
const nonNullType = checkNonNullType(type, node, nullDiagnostic, undefinedDiagnostic, nullOrUndefinedDiagnostic);
function checkNonNullNonVoidType(type: Type, node: Node): Type {
const nonNullType = checkNonNullType(type, node);
if (nonNullType !== errorType && nonNullType.flags & TypeFlags.Void) {
error(node, voidDiagnostic || Diagnostics.Object_is_possibly_undefined);
error(node, Diagnostics.Object_is_possibly_undefined);
}
return nonNullType;
}