1
0
Эх сурвалжийг харах

Remove redundant check - self.config should never be None

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad 9 жил өмнө
parent
commit
a8de582425

+ 0 - 2
compose/config/config.py

@@ -129,8 +129,6 @@ class ConfigFile(namedtuple('_ConfigFile', 'filename config')):
 
     @cached_property
     def version(self):
-        if self.config is None:
-            return 1
         version = self.config.get('version', 1)
         if isinstance(version, dict):
             log.warn("Unexpected type for field 'version', in file {} assuming "