Fix linter nits.

This commit is contained in:
Daniel Rosenwasser 2015-12-15 20:55:54 -08:00
parent d8db60a9a2
commit 731925bffe

View File

@ -5040,7 +5040,7 @@ namespace ts {
return false;
}
function getNumNonRestParameters(signature: Signature) {
const numParams = signature.parameters.length;
return signature.hasRestParameter ?
@ -5651,7 +5651,7 @@ namespace ts {
shouldElaborateErrors = false;
}
}
// don't elaborate the primitive apparent types (like Number)
// don't elaborate the primitive apparent types (like Number)
// because the actual primitives will have already been reported.
if (shouldElaborateErrors && !isPrimitiveApparentType(source)) {
reportError(Diagnostics.Type_0_provides_no_match_for_the_signature_1,