mirror of https://github.com/docker/compose.git
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
|
@cached_property
|
||||||
def version(self):
|
def version(self):
|
||||||
if self.config is None:
|
|
||||||
return 1
|
|
||||||
version = self.config.get('version', 1)
|
version = self.config.get('version', 1)
|
||||||
if isinstance(version, dict):
|
if isinstance(version, dict):
|
||||||
log.warn("Unexpected type for field 'version', in file {} assuming "
|
log.warn("Unexpected type for field 'version', in file {} assuming "
|
||||||
|
|
Loading…
Reference in New Issue