Is the repair expenses deductible for my house sold to tenant while showed on the closing statement as seller credit?

I sold my house to my tenant on 5/29 while the lease was supposed to end on 5/31, instead of doing the repairs, I gave her the repair estimate as a seller credit when we closed the house and it showed on the closing statement. So is that seller credit deductible against the rental income supposed to be ending on 5/31? Thanks in advance!