Wyo. Stat. Ann. § 1-27-126
If no sufficient legal cause of detention is shown, the petitioner must be discharged.