It is found that the complainant, deterred by fear of the pollution which he would have suffered had he passed near the Pariahs, did not conduct the procession.
In the above sentence, why is the inversion "had he" used here? Could anyone please explain this to me?