Skip to content

Commit c4d2f64

Browse files
nshahanCommit Queue
authored and
Commit Queue
committed
[ddc] Avoid unnecessary cast as Object
Change-Id: I96ffb4e91bf1656818fd5a71077f034a1acd1b93 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/324641 Commit-Queue: Nicholas Shahan <[email protected]> Reviewed-by: Mark Zhou <[email protected]>
1 parent ac04a4e commit c4d2f64

File tree

1 file changed

+2
-2
lines changed
  • sdk/lib/_internal/js_dev_runtime/private/ddc_runtime

1 file changed

+2
-2
lines changed

sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/types.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,9 +1230,9 @@ void checkTypeBound(
12301230
}
12311231

12321232
@notNull
1233-
String typeName(type) {
1233+
String typeName(Object? type) {
12341234
if (JS<bool>('!', '# === void 0', type)) return 'undefined type';
1235-
if (JS<bool>('!', '# === null', type)) return 'null type';
1235+
if (type == null) return 'null type';
12361236
if (JS_GET_FLAG('NEW_RUNTIME_TYPES')) {
12371237
return rti.rtiToString(type);
12381238
} else {

0 commit comments

Comments
 (0)