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
1 changed files with 0 additions and 2 deletions

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 "