From 16ee3ccc9c7992269e69e9e809257d56c81ce174 Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Sun, 12 Feb 2017 20:44:15 +0900 Subject: Add `Style/EmptyLinesAroundMethodBody` in `.rubocop.yml` and remove extra empty lines --- railties/lib/rails/engine.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'railties') diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 13af6051ce..dc0b158bd4 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -661,7 +661,6 @@ module Rails end def self.find_root_with_flag(flag, root_path, default = nil) #:nodoc: - while root_path && File.directory?(root_path) && !File.exist?("#{root_path}/#{flag}") parent = File.dirname(root_path) root_path = parent != root_path && parent -- cgit v1.2.3