16 Pa.C.S. § 13713
If a sheriff is legally removed from office or dies or resigns before the expiration of the term for which the sheriff was commissioned, the chief deputy sheriff shall:
Cross References. Section 13713 is referred to in section 13703 of this title.