remove obsolete dead-code suppression from SGR loop

`_csiHandleSgr` carried a `// ignore: dead_code` directive with the
note "workaround for a bug in the analyzer". Re-running the
analyzer with the suppression removed produces no warning — Dart's
flow analysis has caught up since the comment was added.

Per the no-lint-suppression rule the suppression needed to be
either removed or given a more substantive justification; the
analyzer's silence makes the call easy.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-05-06 23:25:59 +02:00
co-authored by Claude
parent 9331055b44
commit 3b352fe654
2 changed files with 107 additions and 109 deletions
@@ -416,8 +416,6 @@ class EscapeParser {
return handler.resetCursorStyle();
}
// This is a workaround for a bug in the analyzer.
// ignore: dead_code
for (var i = 0; i < _csi.params.length; i++) {
final param = params[i];
switch (param) {