The sports brand posted higher-than-expected earnings in the second quarter.