提交 d9e4dd1d 编写于 作者: R Roman V. Babenko

Unnecessary uniqueness & force mapping has been removed at BacktraceCleaner#add_gem_filters

上级 eb154c52
......@@ -19,7 +19,7 @@ def initialize
def add_gem_filters
return unless defined?(Gem)
gems_paths = (Gem.path + [Gem.default_dir]).uniq.map!{ |p| Regexp.escape(p) }
gems_paths = (Gem.path | [Gem.default_dir]).map { |p| Regexp.escape(p) }
return if gems_paths.empty?
gems_regexp = %r{(#{gems_paths.join('|')})/gems/([^/]+)-([\w.]+)/(.*)}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册