Skip to content

Commit

Permalink
warning: shadowing outer local variable - path
Browse files Browse the repository at this point in the history
  • Loading branch information
amatsuda committed Sep 5, 2014
1 parent d3f4210 commit 9460ae8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/better_errors/stack_frame.rb
Expand Up @@ -33,7 +33,7 @@ def gem?
end

def gem_path
if path = Gem.path.detect { |path| filename.index(path) == 0 }
if path = Gem.path.detect { |p| filename.index(p) == 0 }
gem_name_and_version, path = filename.sub("#{path}/gems/", "").split("/", 2)
/(?<gem_name>.+)-(?<gem_version>[\w.]+)/ =~ gem_name_and_version
"#{gem_name} (#{gem_version}) #{path}"
Expand Down

0 comments on commit 9460ae8

Please sign in to comment.