pytools: obmcutil: Collapse nested conditions
Change-Id: Idb1f30dc553cfa95b4669df317a5dbac5dbe8966
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/pytools/obmcutil b/pytools/obmcutil
index 3234e8a..ae062b4 100644
--- a/pytools/obmcutil
+++ b/pytools/obmcutil
@@ -112,9 +112,8 @@
val = None
if objinfo.has_key('value'):
val = objinfo['value']
- else:
- if len(sys.argv) > 0:
- val = eval(sys.argv.pop(0))
+ elif len(sys.argv) > 0:
+ val = eval(sys.argv.pop(0))
if val is not None:
dbus_iface.Set(iface, prop, val)
else: