Wasn't, but it's a strangely convoluted sentence.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
sachin patelif he weren’tBoth he weren't and he wasn't are acceptable in an if-clause. I prefer weren't in writing, though I am likely to say either one in conversation.