Skip to content

Commit b7030dd

Browse files
committed
rubocop fixes
1 parent d9cfe36 commit b7030dd

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
@@ -240,7 +240,7 @@ def public_flags
240240

241241
# Returns true if one of the args is repeatable
242242
def repeatable_arg_exist?
243-
args.select(&:repeatable).any?
243+
args.any?(&:repeatable)
244244
end
245245

246246
# Returns an array of all the required Arguments
@@ -265,7 +265,7 @@ def root_command?
265265

266266
# Returns true if one of the flags matches the provided short code
267267
def short_flag_exist?(flag)
268-
flags.select { |f| f.short == flag }.any?
268+
flags.any? { |f| f.short == flag }
269269
end
270270

271271
# Returns the summary string

0 commit comments

Comments
 (0)