Explorar el Código

Remove unecessary verification

Unknown hace 8 años
padre
commit
c64688d78a
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      core/Cache.py

+ 1 - 2
core/Cache.py

@@ -17,8 +17,7 @@ class Cache:
         self._module_name = module_name
         self._cache_path = cache_path
         self._cache_extension = cache_extension
-        if self._cache_extension is None:
-            self._cache_extension = DEFAULT_CACHE_EXTENSION
+        self._cache_extension = DEFAULT_CACHE_EXTENSION
 
     def get_audio_file_cache_path(self, words, voice, language):
         # fix UnicodeEncodeError: 'ascii' codec can't encode character X in position Y