Remove useless initialization of mem_info = {}

This commit is contained in:
Richard Neumann 2021-10-21 22:50:49 +02:00
parent ca25c356b6
commit 4f6cec5069
1 changed files with 0 additions and 2 deletions

View File

@ -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 """Returns a dict with memory info if called with no args
or the value of the given key of said dict. or the value of the given key of said dict.
""" """
mem_info = {}
with MEMINFO.open() as file: with MEMINFO.open() as file:
mem_info = { mem_info = {
(columns := line.strip().split())[0].rstrip(':'): int(columns[1]) (columns := line.strip().split())[0].rstrip(':'): int(columns[1])