Garage electrical question

Thanks everyone. I do have a long section of 10 wire is why I was wondering. Just trying to save some cash and not go buy another long run of 12. I have always used the 20amp breaker on the compressor and it works good. Thanks again for the help :)