Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib
diff options
context:
space:
mode:
authorRichard Neumann <mail@richard-neumann.de>2021-10-21 22:50:49 +0200
committerRichard Neumann <mail@richard-neumann.de>2021-10-21 22:50:49 +0200
commit4f6cec5069023198b047cb61e3e65fb37a93d577 (patch)
tree9b377b5ef90c16cdaf3d7998855b184e131afce5 /archinstall/lib
parentca25c356b687ffe9a2b63494de97607e8adc68ca (diff)
Remove useless initialization of mem_info = {}
Diffstat (limited to 'archinstall/lib')
-rw-r--r--archinstall/lib/hardware.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/archinstall/lib/hardware.py b/archinstall/lib/hardware.py
index e4308638..4f8192e4 100644
--- a/archinstall/lib/hardware.py
+++ b/archinstall/lib/hardware.py
@@ -79,8 +79,6 @@ def meminfo(key: Optional[str] = None) -> Union[dict[str, int], int]:
"""Returns a dict with memory info if called with no args
or the value of the given key of said dict.
"""
- mem_info = {}
-
with MEMINFO.open() as file:
mem_info = {
(columns := line.strip().split())[0].rstrip(':'): int(columns[1])