Just use the local conf variable

The local conf variable populated by the parent class
already ensures the none/falsey case and sets the conf
to an empty dictionary (as well as checks if its the
expected type and more...); so we should just use that
variable instead of duplicating that work.

Change-Id: I824263d5253d428f6a803f470e29d99de3dbf42c
This commit is contained in:
Joshua Harlow
2015-03-11 15:36:29 -07:00
parent fc1d0a9f75
commit 94eb978a64

View File

@@ -36,9 +36,7 @@ class PathBasedBackend(base.Backend):
def __init__(self, conf):
super(PathBasedBackend, self).__init__(conf)
if conf is None:
conf = {}
self._path = conf.get('path', None)
self._path = self._conf.get('path', None)
@property
def path(self):