Don't update hooks if we don't need to.