From d16c4bc3a12b27e0daf899973bcc37ef8c295cc4 Mon Sep 17 00:00:00 2001 From: Srujan Gaddam <58529443+srujzs@users.noreply.github.com> Date: Mon, 30 Sep 2024 09:58:33 -0700 Subject: [PATCH] Fix curly_braces_in_flow_control_structures lint (#311) Dart CI is currently red: https://github.com/dart-lang/web/actions/runs/11088077104/job/30807510912 --- web_generator/lib/src/translator.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web_generator/lib/src/translator.dart b/web_generator/lib/src/translator.dart index 95e4fbf..ef58c04 100644 --- a/web_generator/lib/src/translator.dart +++ b/web_generator/lib/src/translator.dart @@ -524,7 +524,9 @@ class _PartialInterfacelike { } final isStatic = operation.special == 'static'; if (shouldQueryMDN && - !_shouldGenerateMember(operationName, isStatic: isStatic)) break; + !_shouldGenerateMember(operationName, isStatic: isStatic)) { + break; + } final docs = shouldQueryMDN ? mdnInterface?.propertyFor(operationName, isStatic: isStatic) : null;