From d51dd84f6c8a7e422b29c15dccbac7fef4e0d2f2 Mon Sep 17 00:00:00 2001 From: Wesley Wigham Date: Thu, 3 Dec 2015 14:18:44 -0800 Subject: [PATCH] remove unneeded cast --- src/compiler/checker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/checker.ts b/src/compiler/checker.ts index ebfc29d9550..9c9474eed4d 100644 --- a/src/compiler/checker.ts +++ b/src/compiler/checker.ts @@ -5573,8 +5573,8 @@ namespace ts { } if (source.typePredicate && target.typePredicate) { - const sourcePredicate = source.typePredicate as IdentifierTypePredicate; - const targetPredicate = target.typePredicate as IdentifierTypePredicate; + const sourcePredicate = source.typePredicate; + const targetPredicate = target.typePredicate; if (source.typePredicate.kind !== target.typePredicate.kind) { if (reportErrors) { reportError(Diagnostics.A_this_based_type_guard_is_not_assignable_to_a_parameter_based_type_guard);