Skip to content

Commit 883f6dd

Browse files
committed
Rename local var
1 parent 8e0ba4a commit 883f6dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/thor/actions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@ def source_paths
131131
# Receives a file or directory and search for it in the source paths.
132132
#
133133
def find_in_source_paths(file)
134-
files = [file, file + TEMPLATE_EXTNAME]
134+
possible_files = [file, file + TEMPLATE_EXTNAME]
135135
relative_root = relative_to_original_destination_root(destination_root, false)
136136

137137
source_paths.each do |source|
138-
files.each do |f|
138+
possible_files.each do |f|
139139
source_file = File.expand_path(f, File.join(source, relative_root))
140140
return source_file if File.exist?(source_file)
141141
end

0 commit comments

Comments
 (0)