They're both correct. The two sentences taken in their entirety mean exactly the same thing, in my opinion. This is not to say that these two forms would mean the same thing in every case.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.