remove extra judge

already have SelfWrapper.env, so it it impossible to reach getattr if name == "env"