We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6699279 + d92db90 commit 25fece7Copy full SHA for 25fece7
lib/macho/fat_file.rb
@@ -131,10 +131,8 @@ def dylib_id=(new_id)
131
# All shared libraries linked to the file's Mach-Os.
132
# @return [Array<String>] an array of all shared libraries
133
def linked_dylibs
134
- dylibs = machos.map(&:linked_dylibs).flatten
135
-
136
# can machos inside fat binaries have different dylibs?
137
- dylibs.uniq!
+ machos.flat_map(&:linked_dylibs).uniq
138
end
139
140
# Changes all dependent shared library install names from `old_name` to `new_name`.
0 commit comments