aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorXavier Noria <fxn@hashref.com>2015-11-11 05:23:29 +0100
committerXavier Noria <fxn@hashref.com>2015-11-11 05:23:29 +0100
commit0a2e9b02d60ef3bf1ec1dc9d032d25aefc81987e (patch)
tree75abf37d68d53d2cbc9d26300f32e92a17f15bcd /activesupport
parentfe918b3bc4554693e16a536c91480db92ea35440 (diff)
downloadrails-0a2e9b02d60ef3bf1ec1dc9d032d25aefc81987e.tar.gz
rails-0a2e9b02d60ef3bf1ec1dc9d032d25aefc81987e.tar.bz2
rails-0a2e9b02d60ef3bf1ec1dc9d032d25aefc81987e.zip
rewrites bare loop as until
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/file_evented_update_checker.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activesupport/lib/active_support/file_evented_update_checker.rb b/activesupport/lib/active_support/file_evented_update_checker.rb
index 51c8cf5690..d63c8e2438 100644
--- a/activesupport/lib/active_support/file_evented_update_checker.rb
+++ b/activesupport/lib/active_support/file_evented_update_checker.rb
@@ -107,9 +107,7 @@ module ActiveSupport
lcsp = Pathname.new(paths[0])
paths[1..-1].each do |path|
- loop do
- break if lcsp.ascendant_of?(path)
-
+ until lcsp.ascendant_of?(path)
if lcsp.root?
# If we get here a root directory is not an ascendant of path.
# This may happen if there are paths in different drives on