Skip to content

Commit 90b3f57

Browse files
authored
Merge pull request rails#51694 from Shopify/deduplicate-watched-files-in-FileUpdateChecker
Deduplicate watched filenames in `FileUpdateChecker`
2 parents 3e68225 + 3b5ab67 commit 90b3f57

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)