mirror of
https://github.com/outbackdingo/OpCore-Simplify.git
synced 2026-01-27 10:19:49 +00:00
Remove code for unreachable cases
This commit is contained in:
@@ -84,12 +84,7 @@ class OCPE:
|
||||
pass
|
||||
else:
|
||||
for device_name, device_props in self.hardware.get(device_type).items():
|
||||
if "Controllers" in device_name or "Devices" in device_name:
|
||||
contents.append("{}* {}:".format(" "*4, device_name))
|
||||
for device_name_child, device_props_child in device_props.items():
|
||||
contents.append("{}- {}".format(" "*8, device_name_child))
|
||||
else:
|
||||
contents.append("{}* {}{}".format(" "*4, device_name, ": {}".format(device_props) if isinstance(device_props, str) else ""))
|
||||
contents.append("{}* {}{}".format(" "*4, device_name, ": {}".format(device_props) if isinstance(device_props, str) else ""))
|
||||
content = "\n".join(contents) + "\n"
|
||||
self.u.adjust_window_size(content)
|
||||
print(content)
|
||||
|
||||
Reference in New Issue
Block a user