refactor: avoid to clear the installed cache twice

The removed line does same thing as the method 'clear_installed_cache' does.