From 22011189787775942d3a5650d197d536320e82ca Mon Sep 17 00:00:00 2001 From: Nate Bosch Date: Fri, 17 Jan 2025 00:22:09 +0000 Subject: [PATCH] Remove the variable, no need to copy into a list --- pkgs/args/lib/src/usage.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/args/lib/src/usage.dart b/pkgs/args/lib/src/usage.dart index 27c85cd5..f349cb64 100644 --- a/pkgs/args/lib/src/usage.dart +++ b/pkgs/args/lib/src/usage.dart @@ -90,9 +90,8 @@ class _Usage { if (option.help != null) _write(2, option.help!); if (option.allowedHelp != null) { - var allowedNames = [...option.allowedHelp!.keys]; _newline(); - for (var name in allowedNames) { + for (var name in option.allowedHelp!.keys) { _write(1, _allowedTitle(option, name)); _write(2, option.allowedHelp![name]!); }