Skip to content

Commit

Permalink
fix(project): refactor project code
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniele-Tentoni committed Feb 9, 2022
1 parent fa307fa commit 1eaa859
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cc_codechecker/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,11 @@ def dump(self) -> dict[str, Any]:
Returns:
dict[str, Any]: dictionary dumped.
"""
result: dict = {}

items = self.__dict__.items()
valued = [(k,v) for k, v in items if _excluded(k, v)]
for key, value in valued:
result[key] = value

return result
res = {key:value for key, value in valued}
return res

def version(self) -> bool:
"""Check if required tools are installed in the current machine.
Expand Down

0 comments on commit 1eaa859

Please # to comment.