diff options
author | David RodrÃguez <[email protected]> | 2024-11-18 20:53:48 +0100 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2024-11-26 15:11:05 +0900 |
commit | 963f98a94f978552c9ceb413dab085d2cdfc1236 () | |
tree | 19043e52ff1637468418faef6aaa81eba3ddf017 /lib/rubygems/commands | |
parent | 4addaaf4df9a7b48c3490b806c195fcb7be999b5 (diff) |
[rubygems/rubygems] Enable `Performance/MapCompact` cop
https://.com/rubygems/rubygems/commit/0c3a65871a
-rw-r--r-- | lib/rubygems/commands/contents_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -102,7 +102,7 @@ prefix or only the files that are requireable. end def files_in_default_gem(spec) - spec.files.map do |file| if file.start_with?("#{spec.bindir}/") [RbConfig::CONFIG["bindir"], file.delete_prefix("#{spec.bindir}/")] else @@ -119,7 +119,7 @@ prefix or only the files that are requireable. [resolve.delete_suffix(requirable_part), requirable_part] end - end.compact end def gem_contents(name) |