Skip to content

Commit 5443606

Browse files
author
Rohit Arondekar
committed
Silence shadow warning
Don't shadow path variable in the block to silence var being shadowed warnings in tests of rubygems and possibly others.
1 parent a2fd682 commit 5443606

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/executable-hooks/regenerate_binstubs_command.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def execute_no_wrapper
5555
def try_to_fix_binstubs(spec)
5656
executable_paths =
5757
spec.executables.map do |executable|
58-
path = expanded_bin_paths.detect{|path| File.exist?(File.join(path, executable)) }
58+
path = expanded_bin_paths.detect{|bin_path| File.exist?(File.join(bin_path, executable)) }
5959
File.join(path, executable) if path
6060
end
6161
return false if executable_paths.include?(nil) # not found

0 commit comments

Comments
 (0)