diff --git a/activerecord/lib/active_record/associations/join_dependency.rb b/activerecord/lib/active_record/associations/join_dependency.rb
index <HASH>..<HASH> 100644
--- a/activerecord/lib/active_record/associations/join_dependency.rb
+++ b/activerecord/lib/active_record/associations/join_dependency.rb
@@ -199,8 +199,6 @@ module ActiveRecord
             association = construct(parent, association_name, join_parts, row)
             construct(association, assoc, join_parts, row) if association
           end
-        else
-          raise ConfigurationError, associations.inspect
         end
       end
remove more dead code

We control the inputs to `construct`, so the wrong type shouldn't be
passed in ever.