Преглед изворни кода

Remove redundant check - self.config should never be None

Signed-off-by: Aanand Prasad <[email protected]>
Aanand Prasad пре 9 година
родитељ
комит
a8de582425
1 измењених фајлова са 0 додато и 2 уклоњено
  1. 0 2
      compose/config/config.py

+ 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 "