Fishing Parts

When cooking fish inside me has turned green / brown in some parts?
Hello everyone. Have just cooked a battered cod fillet – And inside there are parts of the fish that have turned green / brown and does not know well. Is this normal sometimes? Is it still okay to eat? Thank you very much.
Kelp Greenling cod will, but turn white when it becomes full.
Advance Auto Parts Know How Bass Fishing Rain