Home Depot reported second-quarter earnings that outperformed expectations.