mirror of
https://github.com/docker/compose.git
synced 2025-04-08 17:05:13 +02:00
Remove redundant check - self.config should never be None
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
parent
4ac004059a
commit
a8de582425
@ -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 "
|
||||
|
Loading…
x
Reference in New Issue
Block a user