Skip to content

Commit

Permalink
remove redundant lines
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jul 8, 2024
1 parent 8b7f4e6 commit b073517
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions cmem_plugin_reason/plugin_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,6 @@ def __init__( # noqa: PLR0913

def get_graphs(self, graphs: dict, context: ExecutionContext) -> None:
"""Get graphs from CMEM"""
if not Path(self.temp).exists():
Path(self.temp).mkdir(parents=True)
for graph in graphs:
self.log.info(f"Fetching graph {graph}.")
with (Path(self.temp) / graphs[graph]).open("w", encoding="utf-8") as file:
Expand Down
2 changes: 0 additions & 2 deletions cmem_plugin_reason/plugin_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,6 @@ def __init__( # noqa: PLR0913

def get_graphs(self, graphs: dict, context: ExecutionContext) -> None:
"""Get graphs from CMEM"""
if not Path(self.temp).exists():
Path(self.temp).mkdir(parents=True)
for graph in graphs:
self.log.info(f"Fetching graph {graph}.")
with (Path(self.temp) / graphs[graph]).open("w", encoding="utf-8") as file:
Expand Down

0 comments on commit b073517

Please sign in to comment.