It doesn't matter if a cat is black or white so long as it catches mice meaning

HOME PROVERBS

result

It doesn't matter if a cat is black or white so long as it catches mice

meaning that:
It doesn't matter the way you do something, as long as you have the desirable result.