Skip to content

Commit 340dd18

Browse files
committed
rubocop optimization
1 parent aa462ec commit 340dd18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/bashly/script/command.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def group_string
8787
# flag with arg that is defined as unique
8888
def has_unique_args_or_flags?
8989
deep_commands(include_self: true).each do |command|
90-
return true if command.args.count(&:unique).positive? ||
91-
command.flags.count(&:unique).positive?
90+
return true if command.args.any?(&:unique) ||
91+
command.flags.any?(&:unique)
9292
end
9393
false
9494
end

0 commit comments

Comments
 (0)