If it appear by the return and papers attached that the judge or court has no jurisdiction, such court or judge shall at once remand the applicant to the person from whose custody he has been taken.
Tex. Code Crim. Proc. § 11.42
If it appear by the return and papers attached that the judge or court has no jurisdiction, such court or judge shall at once remand the applicant to the person from whose custody he has been taken.
Tex. Code Crim. Proc. § 11.42