Skip to content

Commit 2a073c8

Browse files
committed
⚠️ "shadowing outer local variable - file"
1 parent 692f5fa commit 2a073c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/annotate/annotate_models.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,8 @@ def annotate(klass, file, header, options={})
418418

419419
unless options[exclusion_key]
420420
did_annotate = self.get_patterns(key).
421-
map { |file| resolve_filename(file, model_name, table_name) }.
422-
map { |file| annotate_one_file(file, info, position_key, options_with_position(options, position_key)) }.
421+
map { |f| resolve_filename(f, model_name, table_name) }.
422+
map { |f| annotate_one_file(f, info, position_key, options_with_position(options, position_key)) }.
423423
detect { |result| result } || did_annotate
424424
end
425425
end
@@ -567,10 +567,10 @@ def remove_annotations(options={})
567567
deannotated_klass = true if(remove_annotation_of_file(model_file_name))
568568

569569
get_patterns.
570-
map { |file| resolve_filename(file, model_name, table_name) }.
571-
each do |file|
572-
if File.exist?(file)
573-
remove_annotation_of_file(file)
570+
map { |f| resolve_filename(f, model_name, table_name) }.
571+
each do |f|
572+
if File.exist?(f)
573+
remove_annotation_of_file(f)
574574
deannotated_klass = true
575575
end
576576
end

0 commit comments

Comments
 (0)