Skip to content

Commit

Permalink
Remove the variable, no need to copy into a list
Browse files Browse the repository at this point in the history
  • Loading branch information
natebosch committed Jan 17, 2025
1 parent f477bdd commit 2201118
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkgs/args/lib/src/usage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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]!);
}
Expand Down

0 comments on commit 2201118

Please sign in to comment.