MIDLAND, Mich. (AP) — The Michigan appeals court has ruled in favor of a Midland health club in a lawsuit filed by a woman who said her rights were violated when she encountered a transgender person in the locker room.

The court found no evidence of sexual harassment, noting that Yvette Cormier and a transgender woman were both wearing clothes at Planet Fitness.

Cormier's membership was terminated a week after the 2015 incident after she returned to the gym and warned other women. Planet Fitness told her that it allows people to use the locker room that matches their identity as part of a "no-judgment policy."

In a 3-0 decision Thursday, the court said there was nothing illegal about the club yanking Cormier's membership.