From e61f2a0d89a71bfe795c490d8afcf4a5b79310eb Mon Sep 17 00:00:00 2001 From: Sam Rawlins Date: Tue, 20 Feb 2024 16:35:28 +0000 Subject: [PATCH] dart2wasm: prepare for curly_braces lint change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Auto-Submit: Samuel Rawlins Commit-Queue: Ömer Ağacan --- pkg/dart2wasm/lib/types.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/dart2wasm/lib/types.dart b/pkg/dart2wasm/lib/types.dart index bd6a59e4029..29ee9376eff 100644 --- a/pkg/dart2wasm/lib/types.dart +++ b/pkg/dart2wasm/lib/types.dart @@ -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