Condensate Line

Horizontal attic unit condensate disharges into existing attic vent, and not directly to the exterior. Is this a local code descision on whether this is allowed?

Thanks

Not allowed local or other wise unless it is a high efficiency furnace furnace has to have a continuous flow trap at the unit.

Thanks. It’s a Trane XV90 two-stage unit.