If you keep the gun cocked for any extended period, you are ultimately placing undue strain on the hammer spring, and ultimately weakening it. It won't hurt to dry fire occasionally, like after cleaning, but why not buy a snap cap and insert it into the chamber after cleaning, then you can dry fire it with no concern at all.
Sincerely,
Garry