Skip to content

Commit 2201118

Browse files
committed
Remove the variable, no need to copy into a list
1 parent f477bdd commit 2201118

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkgs/args/lib/src/usage.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ class _Usage {
9090
if (option.help != null) _write(2, option.help!);
9191

9292
if (option.allowedHelp != null) {
93-
var allowedNames = [...option.allowedHelp!.keys];
9493
_newline();
95-
for (var name in allowedNames) {
94+
for (var name in option.allowedHelp!.keys) {
9695
_write(1, _allowedTitle(option, name));
9796
_write(2, option.allowedHelp![name]!);
9897
}

0 commit comments

Comments
 (0)