1
0
mirror of https://github.com/docker/docs.git synced 2026-11-05 00:14:17 +03:00

Remove redundant check - self.config should never be None

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad
2016-01-28 16:26:25 +00:00
parent e9ba06ed4b
commit b2ee08f439

View File

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