Browse Source

Remove unecessary verification

Unknown 8 years ago
parent
commit
c64688d78a
1 changed files with 1 additions and 2 deletions
  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