The code turning brown is more an action of oxidation and less an action of the desalinating. When the fish is exposed without skin to oxygen is will face oxidation which will brown things (the same as fruit, salads, etc.). To slow the oxidation process you can apply lemons to the fish or the water you’re using in the desalination process.
For more Q/A on cooking visit our friends at Cut & Dried.