diff --git a/lib/rbs/collection/config.rb b/lib/rbs/collection/config.rb index 60a7d01e62..3b743c570c 100644 --- a/lib/rbs/collection/config.rb +++ b/lib/rbs/collection/config.rb @@ -24,8 +24,8 @@ def self.find_config_path loop do config_path = current.join(PATH) return config_path if config_path.exist? - current = current.join('..') return nil if current.root? + current = current.join('..') end end