Skip to content

Commit 3310ee9

Browse files
committed
style
1 parent 147eba4 commit 3310ee9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tool/mustachio/codegen_runtime_renderer.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,16 @@ String _simpleResolveErrorMessage(List<String> key, String type) =>
146146
if (property.hasProtected || property.hasVisibleForTesting) return;
147147
var type = property.type.returnType;
148148
if (type is TypeParameterType) {
149-
if ((type as TypeParameterType).bound == null ||
150-
(type as TypeParameterType).bound.isDynamic) {
149+
var bound = (type as TypeParameterType).bound;
150+
if (bound == null || bound.isDynamic) {
151151
// Don't add functions for a generic type, for example
152152
// `List<E>.first` has type `E`, which we don't have a specific
153153
// renderer for.
154154
// TODO(srawlins): Find a solution for this. We can track all of the
155155
// concrete types substituted for `E` for example.
156156
return;
157157
}
158-
type = (type as TypeParameterType).bound;
158+
type = bound;
159159
}
160160
var isFullRenderer = _isVisibleToMustache(type.element);
161161

0 commit comments

Comments
 (0)