If it's dry, it's probably overcooked. Most cod fillets are cooked in 3 to 4 minutes when using medium-high heat. Be sure to remove the cooked fish from the pan when cooking the vegetables. I only add the fish back to the pan when there's about a minute of cooking time remaining to heat it back up and give it a final toss with the seasonings.