Skip to content

Commit 3b5ab67

Browse files
committed
Deduplicate watched filenames in FileUpdateChecker
1 parent 6a38d3a commit 3b5ab67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/file_update_checker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def watched
104104
@watched || begin
105105
all = @files.select { |f| File.exist?(f) }
106106
all.concat(Dir[@glob]) if @glob
107-
all
107+
all.tap(&:uniq!)
108108
end
109109
end
110110

0 commit comments

Comments
 (0)