Index: pkg/kernel/lib/transformations/reify/transformation/builder.dart |
diff --git a/pkg/kernel/lib/transformations/reify/transformation/builder.dart b/pkg/kernel/lib/transformations/reify/transformation/builder.dart |
index db46b96e814974efc4192db6ad3760183d9bd31b..13af0edbfe825333f52e9265042a0a73b4090c9e 100644 |
--- a/pkg/kernel/lib/transformations/reify/transformation/builder.dart |
+++ b/pkg/kernel/lib/transformations/reify/transformation/builder.dart |
@@ -238,12 +238,8 @@ class RuntimeTypeSupportBuilder { |
} |
if (type is InterfaceType || type is Supertype) { |
- InterfaceType interfaceType = null; |
- if (type is InterfaceType) { |
- interfaceType = type; |
- } else { |
- interfaceType = (type as Supertype).asInterfaceType; |
- } |
+ InterfaceType interfaceType = |
+ (type is InterfaceType) ? type : (type as Supertype).asInterfaceType; |
Class cls = interfaceType.classNode; |
Expression declaration = createReference(cls); |
List<DartType> typeArguments = interfaceType.typeArguments; |