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

View File

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