Skip to content

Commit

Permalink
performance
Browse files Browse the repository at this point in the history
  • Loading branch information
exterm committed Mar 19, 2024
1 parent ce51697 commit ef46ac0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/packwerk/references_from_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(config = Configuration.from_path)

sig { params(relative_file_paths: T::Array[String]).returns(T::Array[Packwerk::Reference]) }
def list_all(relative_file_paths: [])
files(relative_file_paths: relative_file_paths).map { |file| list(file) }.flatten(1)
files(relative_file_paths: relative_file_paths).flat_map { |file| list(file) }
end

sig { params(relative_file: String).returns(T::Array[Packwerk::Reference]) }
Expand Down

0 comments on commit ef46ac0

Please sign in to comment.