dart2wasm: prepare for curly_braces lint change

This aligns this code better with Effective Dart and prepares for the
upcoming lint rule change at https://dart-review.googlesource.com/c/sdk/+/353140.

Change-Id: I96e77d5c49c17fe0dfcbef7e997cb9d634f1e648
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/353201
Reviewed-by: Ömer Ağacan <omersa@google.com>
Auto-Submit: Samuel Rawlins <srawlins@google.com>
Commit-Queue: Ömer Ağacan <omersa@google.com>
This commit is contained in:
Sam Rawlins 2024-02-20 16:35:28 +00:00 committed by Commit Queue
parent cda9755918
commit e61f2a0d89

View file

@ -131,7 +131,9 @@ class Types {
// classes whose supertype is [Object]. The latter case will be handled
// directly in the subtype checking algorithm.
if (superclassInfo.cls == null ||
superclassInfo.cls == coreTypes.objectClass) continue;
superclassInfo.cls == coreTypes.objectClass) {
continue;
}
Class superclass = superclassInfo.cls!;
// TODO(joshualitt): This includes abstract types that can't be